You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-07-31 13:44:28 +03:00
Fix HTML export test (#12778)
* Fix HTML export test The masked area changed width deending on the date. * Mask off more * Update screenshot
This commit is contained in:
@ -124,7 +124,8 @@ test.describe("HTML Export", () => {
|
|||||||
await expect(page).toMatchScreenshot("html-export.png", {
|
await expect(page).toMatchScreenshot("html-export.png", {
|
||||||
mask: [
|
mask: [
|
||||||
page.getByText("This is the start of export", { exact: false }),
|
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"),
|
page.locator(".mx_MessageTimestamp"),
|
||||||
],
|
],
|
||||||
});
|
});
|
||||||
|
Binary file not shown.
Before Width: | Height: | Size: 40 KiB After Width: | Height: | Size: 40 KiB |
Reference in New Issue
Block a user