mirror of
https://github.com/hanzoai/studio-desktop.git
synced 2026-10-30 18:21:16 +00:00
┆Issue is synchronized with this [Notion page](https://www.notion.so/PR-1070-update-frontend-to-v1-14-5-1bd6d73d365081caa9c8e2453da57318) by [Unito](https://www.unito.io)
41 lines
1.5 KiB
TypeScript
41 lines
1.5 KiB
TypeScript
import { expect, test as setup } from './testExtensions';
|
|
|
|
// This "test" is a setup process. Any failure here should break all post-install tests.
|
|
// After running, the test environment will contain an installed ComfyUI app, ready for other tests to use as a base.
|
|
|
|
setup('Post-install Setup', async ({ installWizard, installedApp, serverStart, app, attachScreenshot }) => {
|
|
setup.slow();
|
|
|
|
await installWizard.clickGetStarted();
|
|
|
|
// Select CPU as torch device
|
|
await installWizard.cpuToggle.click();
|
|
await installWizard.clickNext();
|
|
|
|
// Install to default location
|
|
await expect(installWizard.installLocationTitle).toBeVisible();
|
|
await installWizard.clickNext();
|
|
|
|
await expect(installWizard.migrateTitle).toBeVisible();
|
|
await installWizard.clickNext();
|
|
|
|
await expect(installWizard.desktopSettingsTitle).toBeVisible();
|
|
await installWizard.installButton.click();
|
|
|
|
await serverStart.expectServerStarts(5 * 1000);
|
|
|
|
// Install maximises the window - restore it
|
|
await app.restoreWindow();
|
|
|
|
// When the terminal is hidden and no error is shown, the install is successful
|
|
await expect(serverStart.terminal).not.toBeVisible({ timeout: 5 * 60 * 1000 });
|
|
await expect(serverStart.status.error).not.toBeVisible();
|
|
await expect(serverStart.showTerminalButton).not.toBeVisible();
|
|
|
|
await installedApp.waitUntilLoaded();
|
|
|
|
// Always attach archival screenshot of installed app state
|
|
await expect(installedApp.firstTimeTemplateWorkflowText).toBeVisible({ timeout: 30 * 1000 });
|
|
await attachScreenshot('installed app state.png');
|
|
});
|