From 0c4aeba53e8c0dc595512fe68ba1991f14ed5941 Mon Sep 17 00:00:00 2001 From: "Andrew W. Harn" Date: Wed, 20 Nov 2024 14:14:26 -0500 Subject: [PATCH] Restore old file Signed-off-by: Andrew W. Harn --- .../dialogs/ShowConfigErrorDialog.steps.ts | 23 ++++++++----------- 1 file changed, 10 insertions(+), 13 deletions(-) diff --git a/packages/zowe-explorer/__tests__/__integration__/bdd/step_definitions/dialogs/ShowConfigErrorDialog.steps.ts b/packages/zowe-explorer/__tests__/__integration__/bdd/step_definitions/dialogs/ShowConfigErrorDialog.steps.ts index ef2a237d57..074421bfab 100644 --- a/packages/zowe-explorer/__tests__/__integration__/bdd/step_definitions/dialogs/ShowConfigErrorDialog.steps.ts +++ b/packages/zowe-explorer/__tests__/__integration__/bdd/step_definitions/dialogs/ShowConfigErrorDialog.steps.ts @@ -22,20 +22,17 @@ Then("the Show Config dialog should appear", async function () { this.workbench = await browser.getWorkbench(); let configNotification: Notification; - await browser.waitUntil( - async () => { - const notifications = await (this.workbench as Workbench).getNotifications(); - for (const n of notifications) { - const msg = await n.getMessage(); - if (msg.startsWith("Error encountered when loading your Zowe config.")) { - configNotification = n; - return true; - } + await browser.waitUntil(async () => { + const notifications = await (this.workbench as Workbench).getNotifications(); + for (const n of notifications) { + const msg = await n.getMessage(); + if (msg.startsWith("Error encountered when loading your Zowe config.")) { + configNotification = n; + return true; } - return false; - }, - { timeout: 60000 } - ); + } + return false; + }); await expect(configNotification).toBeDefined(); this.configErrorDialog = configNotification;