Deprecate mx_RightPanel_headerButton
class (#10821)
* Replace: %s/mx_RightPanel_headerButton/mx_RoomHeader_button/g * Conform the selectors to our naming policy: with flag (--) - %s/mx_RoomHeader_button_highlight/mx_RoomHeader_button--highlight/g - %s/mx_RoomHeader_button_unread/mx_RoomHeader_button--unread/g * Update a Jest snapshot * Move the declarations and Sass variables - Move Sass variables to the place where they are used
This commit is contained in:
parent
6f1020bb92
commit
e01d47923d
8 changed files with 61 additions and 101 deletions
|
@ -94,14 +94,8 @@ describe("Room Header", () => {
|
|||
|
||||
// Assert the size of buttons on RoomHeader are specified and the buttons are not compressed
|
||||
// Note these assertions do not check the size of mx_RoomHeader_name button
|
||||
// TODO: merge the assertions by using the same class name
|
||||
cy.get(".mx_RoomHeader_button")
|
||||
.should("have.length", 3)
|
||||
.should("be.visible")
|
||||
.should("have.css", "height", "32px")
|
||||
.should("have.css", "width", "32px");
|
||||
cy.get(".mx_RightPanel_headerButton")
|
||||
.should("have.length", 3)
|
||||
.should("have.length", 6)
|
||||
.should("be.visible")
|
||||
.should("have.css", "height", "32px")
|
||||
.should("have.css", "width", "32px");
|
||||
|
|
|
@ -296,7 +296,7 @@ describe("Threads", () => {
|
|||
});
|
||||
|
||||
cy.findByRole("button", { name: "Threads" })
|
||||
.should("have.class", "mx_RightPanel_headerButton_unread") // User asserts thread list unread indicator
|
||||
.should("have.class", "mx_RoomHeader_button--unread") // User asserts thread list unread indicator
|
||||
.click(); // User opens thread list
|
||||
|
||||
// User asserts thread with correct root & latest events & unread dot
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue