Skip to content

Commit 265d154

Browse files
Half-Shott3chguy
authored andcommitted
Fix invite test flake (element-hq#29753)
* Mask mxid from screenshot * s/hot/not/ Co-authored-by: Michael Telatynski <7t3chguy@gmail.com> * Hide the mxid entirely * Add new snapshot --------- Co-authored-by: Michael Telatynski <7t3chguy@gmail.com>
1 parent f76d111 commit 265d154

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

playwright/e2e/room/invites.spec.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,14 @@ test.describe("Invites", () => {
1919
const roomId = await bot.createRoom({ is_direct: true });
2020
await bot.inviteUser(roomId, user.userId);
2121
await app.viewRoomByName("Bob");
22-
await expect(page.locator(".mx_RoomView")).toMatchScreenshot("Invites_room_view.png");
22+
await expect(page.locator(".mx_RoomView")).toMatchScreenshot("Invites_room_view.png", {
23+
// Hide the mxid, which is not stable.
24+
css: `
25+
.mx_RoomPreviewBar_inviter_mxid {
26+
display: none !important;
27+
}
28+
`,
29+
});
2330
});
2431

2532
test("should be able to decline an invite", async ({ page, homeserver, user, bot, app }) => {
-2.92 KB
Loading

0 commit comments

Comments
 (0)