Skip to content

Commit 6a8d3be

Browse files
authored
close Preparing Inputs window (ITISFoundation#3642)
1 parent 8d8a065 commit 6a8d3be

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tests/e2e/tutorials/ti-plan.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,14 @@ async function runTutorial() {
138138
}
139139
}
140140
catch (err) {
141+
// if it fails because the optimizer times out, close the "Preparing Inputs" view first
142+
const id = '[osparc-test-id=preparingInputsCloseBtn]';
143+
await page.waitForSelector(id, {
144+
timeout: 1000
145+
})
146+
.then(() => page.click(id))
147+
.catch(() => console.log("Preparing Inputs window not found"));
148+
141149
tutorial.setTutorialFailed(true, false);
142150
console.log('Tutorial error: ' + err);
143151
throw "Tutorial Failed";

0 commit comments

Comments
 (0)