From 96bf3ea78a716e5e3dcd6e1009b2d72808a0660a Mon Sep 17 00:00:00 2001 From: Julie G <43496356+julieg18@users.noreply.github.com> Date: Fri, 30 Jun 2023 07:37:40 -0500 Subject: [PATCH] Fix unawaited promises in local e2e tests (#4195) --- extension/src/test/e2e/util.ts | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/extension/src/test/e2e/util.ts b/extension/src/test/e2e/util.ts index f415df2357..dd67c309b4 100644 --- a/extension/src/test/e2e/util.ts +++ b/extension/src/test/e2e/util.ts @@ -40,9 +40,13 @@ const notificationShown = async ( message: string ): Promise => { const notifications = await workbench.getNotifications() - return notifications.some( - async notification => (await notification.elem.getText()) === message - ) + for (const notif of notifications) { + const notifMessage = await notif.elem.getText() + if (message === notifMessage) { + return true + } + } + return false } const runDeleteCommand = async (