You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-07-31 13:44:28 +03:00
Default the room header to on (#12803)
* Default the room header to on * Refactor code into helper method Add a method to open/close the room info panel and use it everywhere. * Fix broken tests, update snapshots and screenshots * Update room header tests to make sense with the new header
This commit is contained in:
@ -171,4 +171,13 @@ export class ElementAppPage {
|
||||
await spotlight.open();
|
||||
return spotlight;
|
||||
}
|
||||
|
||||
/**
|
||||
* Opens/closes the room info panel
|
||||
* @returns locator to the right panel
|
||||
*/
|
||||
public async toggleRoomInfoPanel(): Promise<Locator> {
|
||||
await this.page.getByRole("button", { name: "Room info" }).first().click();
|
||||
return this.page.locator(".mx_RightPanel");
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user