Make sure editor element is visible at the start of tests

This commit is contained in:
Jonatan Heyman 2025-04-10 22:48:10 +02:00
parent ed3a35af2c
commit cf63ce920d

View File

@ -20,6 +20,7 @@ export class HeynotePage {
async goto() { async goto() {
await this.page.goto("/") await this.page.goto("/")
await expect(this.page).toHaveTitle(/Heynote/) await expect(this.page).toHaveTitle(/Heynote/)
await expect(this.page.locator(".cm-editor")).toBeVisible()
expect(this.getErrors()).toStrictEqual([]) expect(this.getErrors()).toStrictEqual([])
} }