Files
studio-desktop/tests/integration/install/installWizard.spec.ts
filteredandGitHub 1a06378d5d [e2e] Implement install process for post-install tests (#907)
* 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
2025-02-15 20:54:10 +11:00

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');
});
});