test(pdfjs): replace beforeAll with beforeEach
Some checks are pending
Checks / main (push) Waiting to run

This commit is contained in:
Elian Doran 2026-01-01 20:55:28 +02:00
parent 7ec7b6bd7b
commit 8d3a0b5295
No known key found for this signature in database

View File

@ -4,11 +4,11 @@ import test, { BrowserContext, expect, Page } from "@playwright/test";
import App from "../support/app";
test.beforeAll(async ({ page, context }) => {
test.beforeEach(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.afterEach(async ({ page, context }) => await setLayout({ page, context }, false));
describe("PDF sidebar", () => {