mirror of https://github.com/coder/code-server.git
Wait for markdown preview selector
This commit is contained in:
parent
90899f07f8
commit
7b1ddc10cd
|
@ -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()
|
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue