You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-29 15:23:11 +03:00
Conform the style rules of GeneralUserSettingsTab.tsx to the style guide (#10595)
* Nesting: `mx_GeneralUserSettingsTab_changePassword` * Nesting: `mx_Spinner` * Conform the style rules to the naming policy For elements inside "mx_GeneralUserSettingsTab_accountSection" and "mx_GeneralUserSettingsTab_discovery" * Conform `mx_GeneralUserSettingsTab_discovery_existing*` to the naming policy
This commit is contained in:
@@ -83,12 +83,12 @@ describe("General user settings tab", () => {
|
||||
});
|
||||
|
||||
// Wait until spinners disappear
|
||||
cy.get(".mx_GeneralUserSettingsTab_accountSection .mx_Spinner").should("not.exist");
|
||||
cy.get(".mx_GeneralUserSettingsTab_discovery .mx_Spinner").should("not.exist");
|
||||
cy.get(".mx_GeneralUserSettingsTab_section--account .mx_Spinner").should("not.exist");
|
||||
cy.get(".mx_GeneralUserSettingsTab_section--discovery .mx_Spinner").should("not.exist");
|
||||
|
||||
cy.get(".mx_GeneralUserSettingsTab_accountSection").within(() => {
|
||||
cy.get(".mx_GeneralUserSettingsTab_section--account").within(() => {
|
||||
// Assert that input areas for changing a password exists
|
||||
cy.get("form.mx_GeneralUserSettingsTab_changePassword")
|
||||
cy.get("form.mx_GeneralUserSettingsTab_section--account_changePassword")
|
||||
.scrollIntoView()
|
||||
.within(() => {
|
||||
cy.findByLabelText("Current password").should("be.visible");
|
||||
@@ -120,7 +120,7 @@ describe("General user settings tab", () => {
|
||||
});
|
||||
|
||||
// Check language and region setting dropdown
|
||||
cy.get(".mx_GeneralUserSettingsTab_languageInput")
|
||||
cy.get(".mx_GeneralUserSettingsTab_section_languageInput")
|
||||
.scrollIntoView()
|
||||
.within(() => {
|
||||
// Check the default value
|
||||
|
||||
Reference in New Issue
Block a user