Skip to content

Commit

Permalink
Fix unawaited promises in local e2e tests (#4195)
Browse files Browse the repository at this point in the history
  • Loading branch information
julieg18 authored Jun 30, 2023
1 parent 71cac6e commit 96bf3ea
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions extension/src/test/e2e/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,13 @@ const notificationShown = async (
message: string
): Promise<boolean> => {
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 (
Expand Down

0 comments on commit 96bf3ea

Please sign in to comment.