Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
hughcrt committed Jul 24, 2024
1 parent 1884681 commit 6a3c4a9
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions e2e/api.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,11 @@ test("regenerate api keys", async ({ page }) => {

await page.getByTestId("regenerate-private-key-button").click()

const promise = page.waitForResponse((resp) =>
resp.url().includes("/regenerate-key"),
)
await page.getByTestId("confirm-button").click()
// wait until button re-contain "Regenerate"
await promise

await page.waitForTimeout(300)
await page.waitForResponse((resp) => resp.url().includes("/regenerate-key"))

await page.waitForTimeout(1000)

const secondPrivateKey = await page.getByTestId("private-key").textContent()

Expand Down

0 comments on commit 6a3c4a9

Please sign in to comment.