From 025aa83e8fd9409958d78601d70efa90c114f547 Mon Sep 17 00:00:00 2001 From: David Crespo Date: Mon, 4 Dec 2023 15:11:52 -0600 Subject: [PATCH] wait 2 seconds for modal to go away, ugh --- app/test/e2e/utils.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/test/e2e/utils.ts b/app/test/e2e/utils.ts index b3a261d72d..82ea572010 100644 --- a/app/test/e2e/utils.ts +++ b/app/test/e2e/utils.ts @@ -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) } /**