diff --git a/projects/storefrontapp-e2e-cypress/cypress/e2e/regression/password-visibility/password-visibility.e2e.cy.ts b/projects/storefrontapp-e2e-cypress/cypress/e2e/regression/password-visibility/password-visibility.e2e.cy.ts index 7e902247d5b..8e201c69af0 100644 --- a/projects/storefrontapp-e2e-cypress/cypress/e2e/regression/password-visibility/password-visibility.e2e.cy.ts +++ b/projects/storefrontapp-e2e-cypress/cypress/e2e/regression/password-visibility/password-visibility.e2e.cy.ts @@ -22,21 +22,27 @@ context('Password Visibility', () => { cy.get('button[aria-label="Show password"]').should('be.visible'); //type password and assert - cy.get('input[aria-label="Password"]').should( + cy.get('input[aria-label="Enter Your Password"]').should( 'have.attr', 'type', 'password' ); - cy.get('input[aria-label="Password"]').type('abc'); - cy.get('input[aria-label="Password"]').should('have.value', 'abc'); + cy.get('input[aria-label="Enter Your Password"]').type('abc'); + cy.get('input[aria-label="Enter Your Password"]').should( + 'have.value', + 'abc' + ); cy.get('button[aria-label="Show password"]').click(); - cy.get('input[aria-label="Password"]').should( + cy.get('input[aria-label="Enter Your Password"]').should( 'have.attr', 'type', 'text' ); - cy.get('input[aria-label="Password"]').should('have.value', 'abc'); + cy.get('input[aria-label="Enter Your Password"]').should( + 'have.value', + 'abc' + ); cy.get('button[aria-label="Hide password"]').should('be.visible'); });