Skip to content

Commit

Permalink
Temp workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
otociulis committed Dec 6, 2024
1 parent 836f7e2 commit fcc4c6a
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions tests/integration/example.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,17 @@ test('has title', async () => {
// Expect a title "to contain" a substring.
await expect(page).toHaveTitle(/ComfyUI/);

await page.screenshot({ path: 'screenshot-load.png' });
const getStartedButton = page.getByText("Get Started")

const getStartedButton = await page.$("button[data-testid='get-started-button']");

expect(getStartedButton).toBeDefined();
await expect(getStartedButton).toBeVisible();
await expect(getStartedButton).toBeEnabled();

getStartedButton?.click();
await page.screenshot({ path: 'screenshot-load.png' });

await page.waitForTimeout(3000);
await getStartedButton.click();

await expect(page.getByText("Choose Installation Location")).toBeVisible();


await page.screenshot({ path: 'screenshot-get-started.png' });
});

0 comments on commit fcc4c6a

Please sign in to comment.