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 7b1ddc1
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions test/e2e/webview.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,8 @@ describe("Webviews", ["--disable-workspace-trust"], {}, () => {

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

expect(renderedText).toBeVisible()
await expect(
codeServerPage.page.frameLocator("iframe.webview.ready").frameLocator("#active-frame").getByText("Hello world"),
).toBeVisible()
})
})

0 comments on commit 7b1ddc1

Please sign in to comment.