Skip to content

Commit

Permalink
close Preparing Inputs window (#3642)
Browse files Browse the repository at this point in the history
  • Loading branch information
odeimaiz authored Dec 7, 2022
1 parent 8d8a065 commit 6a8d3be
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/e2e/tutorials/ti-plan.js
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,14 @@ async function runTutorial() {
}
}
catch (err) {
// if it fails because the optimizer times out, close the "Preparing Inputs" view first
const id = '[osparc-test-id=preparingInputsCloseBtn]';
await page.waitForSelector(id, {
timeout: 1000
})
.then(() => page.click(id))
.catch(() => console.log("Preparing Inputs window not found"));

tutorial.setTutorialFailed(true, false);
console.log('Tutorial error: ' + err);
throw "Tutorial Failed";
Expand Down

0 comments on commit 6a8d3be

Please sign in to comment.