Skip to content

Commit

Permalink
wtf
Browse files Browse the repository at this point in the history
  • Loading branch information
ArnavK-09 committed Jan 30, 2025
1 parent 0b17259 commit 339c234
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion playwright-tests/circuit-json-import.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand All @@ -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
Expand Down

0 comments on commit 339c234

Please sign in to comment.