Skip to content

Commit

Permalink
Fix HTML export test (#12778)
Browse files Browse the repository at this point in the history
* Fix HTML export test

The masked area changed width deending on the date.

* Mask off more

* Update screenshot
  • Loading branch information
dbkr authored Jul 15, 2024
1 parent b4ef5d3 commit 7f95903
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion playwright/e2e/chat-export/html-export.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,8 @@ test.describe("HTML Export", () => {
await expect(page).toMatchScreenshot("html-export.png", {
mask: [
page.getByText("This is the start of export", { exact: false }),
page.locator(".mx_DateSeparator_dateHeading"),
// We need to mask the whole thing because the width of the time part changes
page.locator(".mx_TimelineSeparator"),
page.locator(".mx_MessageTimestamp"),
],
});
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 7f95903

Please sign in to comment.