mirror of
https://github.com/vector-im/element-web.git
synced 2025-11-09 12:41:07 +01:00
Make Playwright screenshot test resilient to DST changes (#31089)
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
parent
5e87f20cd8
commit
e528fefd4c
@ -31,8 +31,13 @@ test.describe("Preferences user settings tab", () => {
|
||||
// Assert that the top heading is rendered
|
||||
await expect(tab.getByRole("heading", { name: "Preferences" })).toBeVisible();
|
||||
await expect(tab).toMatchScreenshot("Preferences-user-settings-tab-should-be-rendered-properly-1.png", {
|
||||
// masked due to daylight saving time
|
||||
// masked with fixed-width due to daylight saving time making the text content vary
|
||||
mask: [tab.locator("#mx_dropdownUserTimezone_value")],
|
||||
css: `
|
||||
#mx_dropdownUserTimezone_value {
|
||||
width: 200px;
|
||||
}
|
||||
`,
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 260 KiB After Width: | Height: | Size: 260 KiB |
Loading…
x
Reference in New Issue
Block a user