feat: update desktop workflows and app center

This commit is contained in:
inman
2026-05-13 19:14:56 +08:00
parent 20b5aff4ad
commit 7c8781a6e3
160 changed files with 55492 additions and 1423 deletions

View File

@@ -66,10 +66,11 @@ test('captures the core Zhinian production UI surfaces', async () => {
const page = await getStableWindow(app);
await page.setViewportSize({ width: 1440, height: 900 });
// The main process stays in E2E mode to avoid startup side effects, while
// the renderer is reloaded without the e2e query so the production YINIAN
// login and tenant flow are exercised.
await page.goto(rendererEntry);
// Keep the renderer in E2E mode so the first-run setup can be skipped
// deterministically before capturing the authenticated product shell.
await page.goto(`${rendererEntry}?e2e=1`);
await expect(page.getByTestId('setup-page')).toBeVisible();
await page.getByTestId('setup-skip-button').click();
await expect(page.getByTestId('yinian-login-page')).toBeVisible();
await page.screenshot({ path: join(screenshotDir, '01-login.png'), fullPage: true });
@@ -80,12 +81,12 @@ test('captures the core Zhinian production UI surfaces', async () => {
await captchaInput.fill('5678');
}
await page.getByRole('button', { name: /^登录$/ }).click();
await expect(page.getByTestId('today-page')).toBeVisible();
await page.getByTestId('sidebar-chat-history').hover();
await expect(page.getByTestId('sidebar-chat-history-popover')).toBeVisible();
await page.screenshot({ path: join(screenshotDir, '02-today.png'), fullPage: true });
await expect(page.getByTestId('chat-composer-input')).toBeVisible();
await page.screenshot({ path: join(screenshotDir, '02-chat.png'), fullPage: true });
await page.getByTestId('sidebar-nav-skills').click();
await page.evaluate(() => {
window.location.hash = '#/settings/skills';
});
await expect(page.getByTestId('yinian-skills-page')).toBeVisible();
await page.screenshot({ path: join(screenshotDir, '03-skills.png'), fullPage: true });