Skip to content

Commit

Permalink
Restore old file
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew W. Harn <[email protected]>
  • Loading branch information
awharn committed Nov 20, 2024
1 parent 0eb281a commit 0c4aeba
Showing 1 changed file with 10 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 0c4aeba

Please sign in to comment.