Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

web: fix full screen test

Abdullah Attafb2de1753e6c
diff --git a/apps/web/__e2e__/editor.test.ts b/apps/web/__e2e__/editor.test.ts
index 8dbf0a946..b5b9e2246 100644
--- a/apps/web/__e2e__/editor.test.ts
+++ b/apps/web/__e2e__/editor.test.ts
@@ -35,7 +35,10 @@ test("focus mode", async ({ page }) => {
).toMatchSnapshot("focus-mode.jpg", { maxDiffPixelRatio: 0.01 });
});
-test("full screen in focus mode", async ({ page }) => {
+test("full screen in focus mode", async ({ page, headless }) => {
+ // fullscreen doesn't work in headless mode
+ if (headless) return;
+
const app = new AppModel(page);
await app.goto();
const notes = await app.goToNotes();