Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit 7f95903

Browse files
authored
Fix HTML export test (#12778)
* Fix HTML export test The masked area changed width deending on the date. * Mask off more * Update screenshot
1 parent b4ef5d3 commit 7f95903

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

playwright/e2e/chat-export/html-export.spec.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,8 @@ test.describe("HTML Export", () => {
124124
await expect(page).toMatchScreenshot("html-export.png", {
125125
mask: [
126126
page.getByText("This is the start of export", { exact: false }),
127-
page.locator(".mx_DateSeparator_dateHeading"),
127+
// We need to mask the whole thing because the width of the time part changes
128+
page.locator(".mx_TimelineSeparator"),
128129
page.locator(".mx_MessageTimestamp"),
129130
],
130131
});
Loading

0 commit comments

Comments
 (0)