完善客户端模块与工作区能力
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-13 19:45:30 +08:00
parent 0148b91a15
commit 22add3f01f
97 changed files with 4756 additions and 3226 deletions

View File

@@ -21,17 +21,23 @@ async function openSettingsFromSidebarAccountMenu(page: Page): Promise<void> {
await page.getByTestId('sidebar-nav-settings').click();
}
test.describe('NianCode developer proxy settings', () => {
test('keeps proxy save available when disabling proxy in developer mode', async ({ page }) => {
async function unlockDeveloperSettings(page: Page): Promise<void> {
await page.getByTestId('settings-reveal-additional').click();
await page.getByTestId('settings-admin-password-input').fill('zhiniankeji666');
await page.getByTestId('settings-admin-unlock-button').click();
await expect(page.getByTestId('settings-proxy-section')).toBeVisible();
}
test.describe('Makelore administrator-protected proxy settings', () => {
test('keeps proxy save available after administrator unlock', async ({ page }) => {
await completeSetup(page);
await openSettingsFromSidebarAccountMenu(page);
await expect(page.getByTestId('settings-page')).toBeVisible();
await page.getByTestId('settings-reveal-additional').click();
const devModeToggle = page.getByTestId('settings-dev-mode-switch');
await expect(devModeToggle).toBeVisible();
await ensureSwitchState(devModeToggle, true);
await expect(page.getByTestId('settings-proxy-section')).not.toBeVisible();
await unlockDeveloperSettings(page);
const proxySection = page.getByTestId('settings-proxy-section');
const proxyToggle = page.getByTestId('settings-proxy-toggle');