Add feature flag 'feature_new_room_decoration_ui' and segrate legacy UI component (#11345)

* Move RoomHeader to LegacyRoomHeader

* Create new RoomHeader component
This commit is contained in:
Germain 2023-08-01 08:32:53 +01:00 committed by GitHub
parent 89a92c6351
commit 6ae7c033d5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
30 changed files with 2309 additions and 2103 deletions

View file

@ -45,7 +45,7 @@ describe("1:1 chat room", () => {
it("should open new 1:1 chat room after leaving the old one", () => {
// leave 1:1 chat room
cy.get(".mx_RoomHeader_nametext").within(() => {
cy.get(".mx_LegacyRoomHeader_nametext").within(() => {
cy.findByText(username).click();
});
cy.findByRole("menuitem", { name: "Leave" }).click();
@ -60,7 +60,7 @@ describe("1:1 chat room", () => {
// open new 1:1 chat room
cy.visit(`/#/user/${user2.userId}?action=chat`);
cy.get(".mx_RoomHeader_nametext").within(() => {
cy.get(".mx_LegacyRoomHeader_nametext").within(() => {
cy.findByText(username);
});
});