Skip to content

Conversation

@richvdh
Copy link
Member

@richvdh richvdh commented Nov 1, 2025

Test what happens when a session is withheld as part of MSC4268

(Per element-hq/element-meta#2876 (comment), it should say "you don't have access to this message").

@richvdh richvdh requested review from a team as code owners November 1, 2025 22:59
Test what happens when a session is withheld as part of MSC4268
Comment on lines 203 to 213
* Opens the room info panel if it is not already open.
*
* @returns locator to the right panel
*/
public async openRoomInfoPanel(): Promise<Locator> {
const locator = this.page.getByTestId("right-panel");
if (!(await locator.isVisible())) {
await this.page.getByRole("button", { name: "Room info" }).first().click();
}
return locator;
}
Copy link
Member

Choose a reason for hiding this comment

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

Seems like this would unexpectedly no-op if say the member list was open instead of the room info panel?

Copy link
Member Author

Choose a reason for hiding this comment

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

probably. It works for my usecase, and is a material improvement on what was there before. I'm disinclined to spend too long gold-plating it.

Copy link
Member

Choose a reason for hiding this comment

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

Can that footgun be included in the comment then?

Copy link
Member Author

Choose a reason for hiding this comment

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

I've added a TODO which will hopefully get the idea across.

Copy link
Contributor

Choose a reason for hiding this comment

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

I've added a TODO which will hopefully get the idea across.

Fine by me, it seems clear that this method won't do anything in that context. Although if you're not planning to fix it in this PR, maybe drop the TODO and say that's the intended behaviour? Either is fine, I think.

Copy link
Member Author

Choose a reason for hiding this comment

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

I wouldn't say it's "intended behaviour": it's my hope/expectation that someone will need this functionality at some point and fix it.

Copy link
Contributor

@kaylendog kaylendog left a comment

Choose a reason for hiding this comment

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

LGTM! For others in the comments, the CI failure is an unrelated flaky test.

@richvdh richvdh added this pull request to the merge queue Nov 6, 2025
Merged via the queue into develop with commit eade32a Nov 6, 2025
45 of 47 checks passed
@richvdh richvdh deleted the rav/history_sharing/withheld_session_test branch November 6, 2025 12:31
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.

5 participants