Skip to content

Commit

Permalink
wait 2 seconds for modal to go away, ugh
Browse files Browse the repository at this point in the history
  • Loading branch information
david-crespo committed Dec 4, 2023
1 parent 5e11fd8 commit 025aa83
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 025aa83

Please sign in to comment.