Hide scroll to bottom button in pinned message e2e test

This commit is contained in:
Florian Duros
2024-10-21 15:46:52 +02:00
parent bdaad67178
commit f88dc203f9
2 changed files with 10 additions and 1 deletions
@@ -30,7 +30,16 @@ test.describe("Pinned messages", () => {
const tile = util.getEventTile("Msg1");
await expect(tile).toMatchScreenshot("pinned-message-Msg1.png", {
mask: [tile.locator(".mx_MessageTimestamp")],
mask: [
tile.locator(".mx_MessageTimestamp"),
page.getByRole("button", { name: "Scroll to most recent messages" }),
],
css: `
// Hide the jump to bottom button in the timeline to avoid flackiness
.mx_JumpToBottomButton {
display: none !important;
}
`,
});
});
Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.8 KiB

After

Width:  |  Height:  |  Size: 5.7 KiB