From 339c234b015d77437d0bdbfce3b0c56a9ff2c042 Mon Sep 17 00:00:00 2001 From: ArnavK-09 Date: Thu, 30 Jan 2025 17:44:12 +0000 Subject: [PATCH] wtf --- playwright-tests/circuit-json-import.spec.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/playwright-tests/circuit-json-import.spec.ts b/playwright-tests/circuit-json-import.spec.ts index 0115b101..682f842c 100644 --- a/playwright-tests/circuit-json-import.spec.ts +++ b/playwright-tests/circuit-json-import.spec.ts @@ -18,6 +18,11 @@ test("should open the Circuit Json Import Dialog", async ({ page }) => { }) test("should handle valid Circuit JSON input", async ({ page }) => { + const loginButton = page.getByRole("button", { name: "Log in" }) + if (loginButton) { + await loginButton.click() + } + const importButton = page.getByRole("button", { name: "Import Circuit JSON" }) await importButton.click() @@ -29,7 +34,7 @@ test("should handle valid Circuit JSON input", async ({ page }) => { "components": [] }`) - const importDialogButton = page.locator('button:has-text("Import")') + const importDialogButton = page.getByRole("button", { name: "Import" }) await importDialogButton.click() // Wait for success toast message