Skip to content

Commit 7fd9466

Browse files
authored
fix: 2FA tests copy (#1547)
1 parent ae45337 commit 7fd9466

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

cypress/integration/tests/superadmin-mfa.cy.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,9 @@ describe('Superadmin MFA Flow', () => {
6565
cy.wait('@getUserSuperadmin');
6666

6767
cy.visit('/admin/dashboard');
68-
cy.get('h3').should('contain', 'Set up Two-Factor Authentication');
68+
cy.get('h3').should('contain', 'Set up two-factor authentication');
6969
cy.get('input[type="tel"]').should('exist');
70-
cy.get('button').contains('Send Verification Code').should('exist');
70+
cy.get('button').contains('Send verification code').should('exist');
7171

7272
cy.logout();
7373
});
@@ -112,13 +112,13 @@ describe('Superadmin MFA Flow', () => {
112112
cy.visit('/admin/dashboard');
113113

114114
// Verify MFA setup form is displayed
115-
cy.get('h3').should('contain', 'Set up Two-Factor Authentication');
115+
cy.get('h3').should('contain', 'Set up two-factor authentication');
116116

117117
// Enter phone number
118118
cy.get('input[type="tel"]').should('be.visible').type(testPhoneNumber);
119119

120120
// Click send verification code button
121-
cy.get('button').contains('Send Verification Code').should('be.visible').click();
121+
cy.get('button').contains('Send verification code').should('be.visible').click();
122122

123123
// We can't mock the reCAPTCHA in Cypress, so we will skip this step that tests the actual sms sending and mfa setup
124124

@@ -174,7 +174,7 @@ describe('Superadmin MFA Flow', () => {
174174

175175
// Should show email verification requirement
176176
cy.get('p').should('contain', 'Please verify your email before setting up 2FA');
177-
cy.get('button').contains('Send Verification Email').should('exist');
177+
cy.get('button').contains('Send verification email').should('exist');
178178

179179
cy.logout();
180180
});

i18n/messages/auth/en.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,6 @@
6262
"emailVerificationError": "Error sending verification email. Please try again.",
6363
"emailVerificationSent": "Verification email sent. Please check your inbox.",
6464
"emailVerificationSpamCheck": "If you don't see the email, please check your spam folder.",
65-
"sendVerificationEmail": "Send Verification Email",
66-
"resendVerificationEmail": "Resend Verification Email",
6765
"sendVerificationEmail": "Send verification email",
6866
"resendVerificationEmail": "Resend verification email",
6967
"passwordRequired": "Password is required for reauthentication.",

0 commit comments

Comments
 (0)