Formerly KrillinAI, VideoTranslation and Dubbing Tool for 120+ Languages. Open-source AI workspace for creators, powered by Codex. Video downloader, video translation, create videos, images, audios, and edits with Agents in one place. For your Social Media like YouTube, TikTok, Instagram, etc.
TypeScript agent-skillscodex-clideskop-appdubbingimage-generationlocalizationskillsttsvideo-editingvideo-generationvideo-transcriptionvideo-translation
test(desktop): align packaged checks with account and platform settings
Leggettee0994392783
diff --git a/apps/desktop/e2e/creator-packaged-app.spec.ts b/apps/desktop/e2e/creator-packaged-app.spec.tsindex 7781c496..8f81215b 100644--- a/apps/desktop/e2e/creator-packaged-app.spec.ts+++ b/apps/desktop/e2e/creator-packaged-app.spec.ts@@ -204,9 +204,9 @@ test('打包 App 的每个设置 Tab 与主页面保持相同右侧留白', asynawait waitForWorkspace(fixture.app.page);await fixture.app.page.getByRole('button', { name: '设置', exact: true }).click();const nav = fixture.app.page.locator('.settings-nav > button');- await expect(nav).toHaveCount(9);+ await expect(nav).toHaveCount(10);const boundsByTab = [];- for (let index = 0; index < 9; index += 1) {+ for (let index = 0; index < 10; index += 1) {await nav.nth(index).click();const section = fixture.app.page.locator('.settings-content > .settings-section');await expect(section).toBeVisible();diff --git a/apps/desktop/e2e/desktop.spec.ts b/apps/desktop/e2e/desktop.spec.tsindex a2b347ba..d7df3ca2 100644--- a/apps/desktop/e2e/desktop.spec.ts+++ b/apps/desktop/e2e/desktop.spec.ts@@ -140,15 +140,17 @@ test('@package-smoke 授权回调唤起个人中心,模型初始化期间立await launchSecondInstance(fixture, ['opencreator://auth/complete']);await expect(fixture.page).toHaveURL(/#\/account\?login=complete$/);await expect.poll(() => checks.length).toBeGreaterThan(0);- await expect(fixture.page.getByText('已登录,正在连接模型服务…')).toBeVisible({ timeout: 10_000 });+ await expect(fixture.page.getByRole('region', { name: 'OpenCreator 账户', exact: true }).getByRole('status')).toHaveText('已登录', { timeout: 10_000 });+ await expect(fixture.page.getByText('官方模型服务正在连接', { exact: true })).toBeVisible();const state = await runtimeRequest<{ authState: string; activationState: string }>(fixture.page, 'GET', '/gateway/account');expect(state.body).toMatchObject({ authState: 'signed_in', activationState: 'loading' });expect(tokenRequests).toBe(1);await fixture.page.screenshot({ path: testInfo.outputPath('login-models-loading.png') });releaseBootstrap();await expect(fixture.page.getByRole('heading', { name: account.email, exact: true })).toBeVisible();- await expect(fixture.page.getByText('已登录,模型服务暂不可用', { exact: true })).toBeVisible();- await expect(fixture.page.getByRole('button', { name: '重新连接', exact: true })).toBeEnabled();+ await expect(fixture.page.getByRole('region', { name: 'OpenCreator 账户', exact: true }).getByRole('status')).toHaveText('已登录');+ await expect(fixture.page.getByText('官方模型服务暂不可用', { exact: true })).toBeVisible();+ await expect(fixture.page.getByRole('button', { name: '模型设置', exact: true })).toBeEnabled();const signedIn = await runtimeRequest(fixture.page, 'GET', '/gateway/account');expect(signedIn.body).toMatchObject({ authState: 'signed_in', activationState: 'blocked', account });expect(JSON.stringify(signedIn.body)).not.toMatch(/private-access|private-refresh|private-device-secret/);