Skip to content

Commit

Permalink
Try to increase the timeout to 1 minute
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 14, 2024
1 parent fd33b3d commit 5455420
Showing 1 changed file with 13 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,20 @@ 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;
});
return false;
},
{ timeout: 60000 }
);

await expect(configNotification).toBeDefined();
this.configErrorDialog = configNotification;
Expand Down

0 comments on commit 5455420

Please sign in to comment.