mirror of
https://github.com/hanzo-studio/studio-desktop.git
synced 2026-10-30 18:54:12 +00:00
- Replace all ComfyUI references with Hanzo Studio - Update comfy.org URLs to hanzo.ai/studio.hanzo.ai - Change comfyanonymous to hanzoai - Update Comfy-Org to hanzo-studio - Rename files and directories - Update package names and configurations - Update documentation and README files This is a comprehensive rebranding to align with Hanzo AI's product suite and company identity.
35 lines
1.4 KiB
TypeScript
35 lines
1.4 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 Hanzo Studio app, ready for other tests to use as a base.
|
|
|
|
setup('Post-install Setup', async ({ installWizard, installedApp, serverStart, 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.desktopSettingsTitle).toBeVisible();
|
|
await installWizard.installButton.click();
|
|
|
|
await serverStart.expectServerStarts(5 * 1000);
|
|
|
|
// 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');
|
|
});
|