mirror of
https://github.com/hanzoai/studio-desktop.git
synced 2026-10-30 18:21:16 +00:00
## Runtime change - Fixes window state not saved on launch ## Test changes - Updates integration test locators for frontend v1.27.x - Removes obsolete migrate step from install flow ### Migration step changes Migration is now combined with the install location step as an accordion section. ### Test locators updated - GPU selection: "Select GPU" → "Choose your hardware setup" - Install location: Updated input selector to use placeholder - Server status: "Finishing..." → "Loading Human Interface" - CPU toggle: Updated to role-based selector ### Window state fix Window bounds now captured on launch. Previously only saved on resize/move events. ┆Issue is synchronized with this [Notion page](https://www.notion.so/PR-1369-Update-integration-tests-for-v0-5-compatibility-2876d73d3650811c88f1c81e55994f6b) by [Unito](https://www.unito.io) --------- Co-authored-by: github-actions <[email protected]>
32 lines
1.3 KiB
TypeScript
32 lines
1.3 KiB
TypeScript
import { expect, test } from '../testExtensions';
|
|
|
|
test.describe('Install Wizard', () => {
|
|
test('can click through first time installer', async ({ installWizard, window, attachScreenshot }) => {
|
|
await attachScreenshot('screenshot-app-start');
|
|
|
|
const getStartedButton = window.getByText('Get Started');
|
|
await expect(getStartedButton).toBeVisible();
|
|
await expect(getStartedButton).toBeEnabled();
|
|
await expect(window).toHaveScreenshot('get-started.png');
|
|
await installWizard.clickGetStarted();
|
|
|
|
// Select GPU screen
|
|
await expect(installWizard.selectGpuTitle).toBeVisible();
|
|
await expect(installWizard.cpuToggle).toBeVisible();
|
|
await expect(window).toHaveScreenshot('select-gpu.png');
|
|
await installWizard.cpuToggle.click();
|
|
|
|
await expect(window).toHaveScreenshot('cpu-clicked.png');
|
|
await installWizard.clickNext();
|
|
|
|
// Install stepper screens
|
|
await expect(installWizard.installLocationTitle).toBeVisible();
|
|
await expect(installWizard.migrateTitle).toBeVisible();
|
|
await expect.soft(window).toHaveScreenshot('choose-installation-location.png');
|
|
await installWizard.clickNext();
|
|
|
|
await expect(installWizard.desktopSettingsTitle).toBeVisible();
|
|
await expect(window).toHaveScreenshot('desktop-app-settings.png');
|
|
});
|
|
});
|