test(server/pdf): move beforeAll

This commit is contained in:
Elian Doran 2026-01-01 12:19:51 +02:00
parent 8bf8d85bb7
commit b2378f2a53
No known key found for this signature in database

View File

@ -4,12 +4,13 @@ import test, { BrowserContext, expect, Page } from "@playwright/test";
import App from "../support/app";
test.beforeAll(async ({ page, context }) => {
const app = await setLayout({ page, context }, true);
await app.setOption("rightPaneCollapsedItems", "[]");
});
test.beforeAll(async ({ page, context }) => await setLayout({ page, context }, true));
describe("PDF sidebar", () => {
test.beforeAll(async ({ page, context }) => {
const app = await setLayout({ page, context }, true);
await app.setOption("rightPaneCollapsedItems", "[]");
});
// test.beforeAll(async ({ page, context }) => await setLayout({ page, context }, true));
test("Table of contents works", async ({ page, context }) => {
const app = new App(page, context);