Skip to content

Commit

Permalink
Wait for markdown preview selector
Browse files Browse the repository at this point in the history
  • Loading branch information
code-asher committed Oct 17, 2024
1 parent 90899f0 commit 1c40db2
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions test/e2e/webview.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,9 @@ describe("Webviews", ["--disable-workspace-trust"], {}, () => {

// It's an iframe within an iframe
// so we have to do .frameLocator twice
const renderedText = await codeServerPage.page
await codeServerPage.page
.frameLocator("iframe.webview.ready")
.frameLocator("#active-frame")
.locator("text=Hello world")

expect(renderedText).toBeVisible()
.getByText("Hello world")
})
})

0 comments on commit 1c40db2

Please sign in to comment.