Skip to content

Fix invite test flake #29753

Merged
Half-Shot merged 6 commits intodevelopfrom
hs/fix-invite-flake
Apr 15, 2025
Merged

Fix invite test flake #29753
Half-Shot merged 6 commits intodevelopfrom
hs/fix-invite-flake

Conversation

@Half-Shot
Copy link
Copy Markdown
Member

@Half-Shot Half-Shot commented Apr 15, 2025

Fixes #29690

Checklist

  • Tests written for new code (and old code if feasible).
  • New or updated public/exported symbols have accurate TSDoc documentation.
  • Linter and other CI checks pass.
  • I have licensed the changes to Element by completing the Contributor License Agreement (CLA)

@Half-Shot Half-Shot requested a review from a team as a code owner April 15, 2025 14:09
@Half-Shot Half-Shot marked this pull request as draft April 15, 2025 14:09
@Half-Shot Half-Shot added the T-Task Tasks for the team like planning label Apr 15, 2025
Comment thread playwright/e2e/room/invites.spec.ts Outdated
Co-authored-by: Michael Telatynski <7t3chguy@gmail.com>
Comment thread playwright/e2e/room/invites.spec.ts Outdated
await expect(page.locator(".mx_RoomView")).toMatchScreenshot("Invites_room_view.png");
await expect(page.locator(".mx_RoomView")).toMatchScreenshot("Invites_room_view.png", {
// Hide the mxid, which is not stable.
mask: [page.locator(".mx_RoomPreviewBar_inviter_mxid")],
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A mask may change width if the length (not monospace font) changes, so not sure this will fix it. It should either be on a fixed size block element or you should use css

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bah, good point. Let's have a look at the tree..

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(The tree did not offer a good candidate for masking so it's css for you, mxid field)

@Half-Shot Half-Shot marked this pull request as ready for review April 15, 2025 14:37
@Half-Shot Half-Shot enabled auto-merge April 15, 2025 18:45
@Half-Shot Half-Shot added this pull request to the merge queue Apr 15, 2025
Merged via the queue into develop with commit af9bde5 Apr 15, 2025
32 checks passed
@Half-Shot Half-Shot deleted the hs/fix-invite-flake branch April 15, 2025 19:10
@Half-Shot Half-Shot mentioned this pull request Apr 25, 2025
2 tasks
acheong08 pushed a commit to acheong08/element-web that referenced this pull request Apr 30, 2025
* 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>
snowping pushed a commit to Novaloop-AG/element-web that referenced this pull request Jun 22, 2025
* 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>
Dileep9999 pushed a commit to hemanth-nag/element-web that referenced this pull request Oct 8, 2025
* 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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

T-Task Tasks for the team like planning

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Flaky playwright test: room/invites.spec.ts: should render an invite view

2 participants