feat: 完善图像工作区与创作工具体验
Some checks failed
Electron E2E / Electron E2E (macos-latest) (push) Has been cancelled
Electron E2E / Electron E2E (ubuntu-latest) (push) Has been cancelled
Electron E2E / Electron E2E (windows-latest) (push) Has been cancelled

This commit is contained in:
inman
2026-08-16 14:08:02 +08:00
parent bfcb88cfef
commit 26b52d76e3
92 changed files with 16678 additions and 2975 deletions

View File

@@ -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',