Fix playwright tests locally (#32974)

This commit is contained in:
Michael Telatynski
2026-03-31 07:54:23 +00:00
committed by GitHub
parent 0d1d889c28
commit fc870bd676
4 changed files with 3 additions and 15 deletions
@@ -122,7 +122,7 @@ test.describe("HTML Export", () => {
await download.saveAs(zipPath);
const zip = await extractZipFileToPath(zipPath, dirPath);
await page.goto(`file://${dirPath}/${Object.keys(zip.files)[0]}/messages.html`);
await page.goto(`file://${dirPath}/${Object.keys(zip.files).find((f) => f.endsWith("/messages.html"))}`);
await expect(page).toMatchScreenshot("html-export.png", {
mask: [page.locator(".mx_TimelineSeparator")],
css: `