mirror of
https://github.com/hanzoai/studio-desktop.git
synced 2026-10-30 18:21:16 +00:00
* Ensure install test disposes test env * nit * Add post-install setup project * [Refactor] Re-export expect to enable custom tests * [Refactor] Use class properties for locators * Add post-install app setup "test" * [Refactor] Set dispose test environment at project level * [DevExp] Use soft fail for install location
35 lines
1.4 KiB
TypeScript
35 lines
1.4 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.soft(window).toHaveScreenshot('choose-installation-location.png');
|
|
await installWizard.clickNext();
|
|
|
|
await expect(installWizard.migrateTitle).toBeVisible();
|
|
await expect(window).toHaveScreenshot('migrate-from-existing-installation.png');
|
|
await installWizard.clickNext();
|
|
|
|
await expect(installWizard.desktopSettingsTitle).toBeVisible();
|
|
await expect(window).toHaveScreenshot('desktop-app-settings.png');
|
|
});
|
|
});
|