Skip to content

Commit faadb6d

Browse files
authored
Sleep after closing toast in E2E to reduce flake (#1832)
wait 2 seconds for modal to go away, ugh
1 parent 9e82f9a commit faadb6d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

app/test/e2e/utils.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,10 @@ export async function expectRowVisible(
105105
export async function stopInstance(page: Page) {
106106
await page.click('role=button[name="Instance actions"]')
107107
await page.click('role=menuitem[name="Stop"]')
108-
// close toast. for some reason it prevents things from happening
108+
// close toast and wait for it to fade out. for some reason it prevents things
109+
// from working, but only in tests as far as we can tell
109110
await page.click('role=button[name="Dismiss notification"]')
111+
await sleep(2000)
110112
}
111113

112114
/**

0 commit comments

Comments
 (0)