From fcc4c6a2915cd1afcce67de761b34649f492e953 Mon Sep 17 00:00:00 2001 From: Oto Ciulis Date: Fri, 6 Dec 2024 13:07:12 -0800 Subject: [PATCH] Temp workaround --- tests/integration/example.spec.ts | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/tests/integration/example.spec.ts b/tests/integration/example.spec.ts index cee7c21d..cf85a68f 100644 --- a/tests/integration/example.spec.ts +++ b/tests/integration/example.spec.ts @@ -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' }); });