Skip to content

Commit

Permalink
update: use this browser
Browse files Browse the repository at this point in the history
  • Loading branch information
VsevolodX committed Apr 12, 2024
1 parent cb34f4e commit 490af05
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions tests/cypress/support/widgets/JupyterLiteSession.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,13 @@ export default class JupyterLiteSession extends Widget {
}

waitForVisible() {
return cy
.getIframeBody(selectors.wrapper)
.find(selectors.main, { timeout: 10000 })
.should("exist", { timeout: 10000 });
return this.browser.iframe(selectors.wrapper, "md").waitForVisible(selectors.main, "md");
}

checkFileOpened(fileName: string) {
return cy
.getIframeBody(selectors.wrapper)
.find(selectors.main)
.find(`li[title*='${fileName}']`)
.should("exist");
return this.browser
.iframe(selectors.wrapper, "md")
.waitForVisible(`li[title*='${fileName}']`);
}

clickOnLink(link: string) {
Expand Down

0 comments on commit 490af05

Please sign in to comment.