Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 1ba9b15

Browse files
committedOct 17, 2024··
Wait for markdown preview selector
1 parent 90899f0 commit 1ba9b15

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed
 

‎test/e2e/webview.test.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,9 @@ describe("Webviews", ["--disable-workspace-trust"], {}, () => {
1818

1919
// It's an iframe within an iframe
2020
// so we have to do .frameLocator twice
21-
const renderedText = await codeServerPage.page
21+
await codeServerPage.page
2222
.frameLocator("iframe.webview.ready")
2323
.frameLocator("#active-frame")
24-
.locator("text=Hello world")
25-
26-
expect(renderedText).toBeVisible()
24+
.waitForSelector("text=Hello world")
2725
})
2826
})

0 commit comments

Comments
 (0)
Please sign in to comment.