Wait for markdown preview selector

This commit is contained in:
Asher 2024-10-16 21:44:25 -08:00
parent 90899f07f8
commit 7b1ddc10cd
No known key found for this signature in database
GPG Key ID: D63C1EF81242354A
1 changed files with 3 additions and 6 deletions

View File

@ -18,11 +18,8 @@ describe("Webviews", ["--disable-workspace-trust"], {}, () => {
// It's an iframe within an iframe // It's an iframe within an iframe
// so we have to do .frameLocator twice // so we have to do .frameLocator twice
const renderedText = await codeServerPage.page await expect(
.frameLocator("iframe.webview.ready") codeServerPage.page.frameLocator("iframe.webview.ready").frameLocator("#active-frame").getByText("Hello world"),
.frameLocator("#active-frame") ).toBeVisible()
.locator("text=Hello world")
expect(renderedText).toBeVisible()
}) })
}) })