Skip to content

Commit

Permalink
Sleep after closing toast in E2E to reduce flake (#1832)
Browse files Browse the repository at this point in the history
wait 2 seconds for modal to go away, ugh
  • Loading branch information
david-crespo authored Dec 4, 2023
1 parent 9e82f9a commit faadb6d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/test/e2e/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,10 @@ export async function expectRowVisible(
export async function stopInstance(page: Page) {
await page.click('role=button[name="Instance actions"]')
await page.click('role=menuitem[name="Stop"]')
// close toast. for some reason it prevents things from happening
// close toast and wait for it to fade out. for some reason it prevents things
// from working, but only in tests as far as we can tell
await page.click('role=button[name="Dismiss notification"]')
await sleep(2000)
}

/**
Expand Down

0 comments on commit faadb6d

Please sign in to comment.