feat: 完善图像工作区与创作工具体验
This commit is contained in:
@@ -161,6 +161,18 @@ describe('Settings runtime workspace', () => {
|
||||
});
|
||||
});
|
||||
|
||||
it('offers only Chinese in the language setting', async () => {
|
||||
renderSettings();
|
||||
|
||||
const languageSelect = await screen.findByRole('combobox', { name: 'appearance.language' });
|
||||
expect(languageSelect).toHaveValue('zh');
|
||||
expect(languageSelect.querySelectorAll('option')).toHaveLength(1);
|
||||
expect(screen.getByRole('option', { name: '中文' })).toBeInTheDocument();
|
||||
expect(screen.queryByRole('option', { name: 'English' })).not.toBeInTheDocument();
|
||||
expect(screen.queryByRole('option', { name: '日本語' })).not.toBeInTheDocument();
|
||||
expect(screen.queryByRole('option', { name: 'Русский' })).not.toBeInTheDocument();
|
||||
});
|
||||
|
||||
it('keeps runtime status and updates public while protecting developer settings', async () => {
|
||||
const activeProject = {
|
||||
id: 'prj_1',
|
||||
|
||||
Reference in New Issue
Block a user