MM-54569 : Update maximum password length on UI to 72 characters (#26699)
Этот коммит содержится в:
@@ -80,8 +80,8 @@ describe('Profile', () => {
|
||||
// # Save
|
||||
cy.uiSave();
|
||||
|
||||
// * Verify for error message: "Must be 5-64 characters long."
|
||||
cy.get('#clientError').should('be.visible').should('have.text', 'Must be 5-64 characters long.');
|
||||
// * Verify for error message: "Must be 5-72 characters long."
|
||||
cy.get('#clientError').should('be.visible').should('have.text', 'Must be 5-72 characters long.');
|
||||
});
|
||||
|
||||
it('MM-T2084 Password: Cancel out of password changes causes no changes to be made', () => {
|
||||
|
||||
@@ -20,7 +20,7 @@ describe('Authentication', () => {
|
||||
cy.apiAdminLogin();
|
||||
});
|
||||
|
||||
it('MM-T1771 - Minimum password length error field shows below 5 and above 64', () => {
|
||||
it('MM-T1771 - Minimum password length error field shows below 5 and above 72', () => {
|
||||
cy.visit('/admin_console/authentication/password');
|
||||
|
||||
cy.findByPlaceholderText('E.g.: "5"', {timeout: TIMEOUTS.ONE_MIN}).clear().type('88');
|
||||
@@ -28,7 +28,7 @@ describe('Authentication', () => {
|
||||
cy.uiSave();
|
||||
|
||||
// * Ensure error appears when saving a password outside of the limits
|
||||
cy.findByText('Minimum password length must be a whole number greater than or equal to 5 and less than or equal to 64.', {timeout: TIMEOUTS.ONE_MIN}).
|
||||
cy.findByText('Minimum password length must be a whole number greater than or equal to 5 and less than or equal to 72.', {timeout: TIMEOUTS.ONE_MIN}).
|
||||
should('exist').
|
||||
and('be.visible');
|
||||
|
||||
@@ -37,7 +37,7 @@ describe('Authentication', () => {
|
||||
cy.uiSave();
|
||||
|
||||
// * Ensure error appears when saving a password outside of the limits
|
||||
cy.findByText('Minimum password length must be a whole number greater than or equal to 5 and less than or equal to 64.', {timeout: TIMEOUTS.ONE_MIN}).
|
||||
cy.findByText('Minimum password length must be a whole number greater than or equal to 5 and less than or equal to 72.', {timeout: TIMEOUTS.ONE_MIN}).
|
||||
should('exist').
|
||||
and('be.visible');
|
||||
});
|
||||
@@ -49,7 +49,7 @@ describe('Authentication', () => {
|
||||
|
||||
cy.uiSave();
|
||||
|
||||
cy.findByText('Must be 7-64 characters long.').should('be.visible');
|
||||
cy.findByText('Must be 7-72 characters long.').should('be.visible');
|
||||
|
||||
cy.apiLogout();
|
||||
|
||||
@@ -65,7 +65,7 @@ describe('Authentication', () => {
|
||||
cy.findByText('Create Account').click();
|
||||
|
||||
// * Assert the error is what is expected;
|
||||
cy.findByText('Must be 7-64 characters long.').should('be.visible');
|
||||
cy.findByText('Must be 7-72 characters long.').should('be.visible');
|
||||
|
||||
cy.get('#input_password-input').clear().type('greaterthan7');
|
||||
|
||||
@@ -118,7 +118,7 @@ describe('Authentication', () => {
|
||||
cy.findByText('Create Account').click();
|
||||
|
||||
// * Assert the error is what is expected;
|
||||
cy.findByText('Must be 5-64 characters long and include both lowercase and uppercase letters, numbers, and special characters.').should('be.visible');
|
||||
cy.findByText('Must be 5-72 characters long and include both lowercase and uppercase letters, numbers, and special characters.').should('be.visible');
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
@@ -75,7 +75,7 @@ describe('Signup Email page', () => {
|
||||
cy.findByText('You can use lowercase letters, numbers, periods, dashes, and underscores.').should('be.visible');
|
||||
|
||||
cy.get('#input_password-input').should('be.visible').and('have.attr', 'placeholder', 'Choose a Password');
|
||||
cy.findByText('Must be 5-64 characters long.').should('be.visible');
|
||||
cy.findByText('Must be 5-72 characters long.').should('be.visible');
|
||||
|
||||
cy.get('#saveSetting').scrollIntoView().should('be.visible');
|
||||
cy.get('#saveSetting').should('contain', 'Create Account');
|
||||
|
||||
@@ -160,7 +160,7 @@ describe('System Console > User Management > Users', () => {
|
||||
|
||||
// * Verify the appropriate error is returned.
|
||||
cy.get('form.form-horizontal').find('.has-error p.error').should('be.visible').
|
||||
and('contain', 'Must be 5-64 characters long.');
|
||||
and('contain', 'Must be 5-72 characters long.');
|
||||
});
|
||||
|
||||
it('MM-T936 Users - System admin changes own password - Blank fields', () => {
|
||||
@@ -188,7 +188,7 @@ describe('System Console > User Management > Users', () => {
|
||||
|
||||
// * Verify the appropriate error is returned.
|
||||
cy.get('form.form-horizontal').find('.has-error p.error').should('be.visible').
|
||||
and('contain', 'Must be 5-64 characters long.');
|
||||
and('contain', 'Must be 5-72 characters long.');
|
||||
});
|
||||
|
||||
it('MM-T937 Users - System admin changes own password - Successfully changed', () => {
|
||||
|
||||
@@ -46,7 +46,7 @@ export default class SignupPage {
|
||||
this.usernameError = page.locator(
|
||||
'text=Usernames have to begin with a lowercase letter and be 3-22 characters long. You can use lowercase letters, numbers, periods, dashes, and underscores.',
|
||||
);
|
||||
this.passwordError = page.locator('text=Must be 5-64 characters long.');
|
||||
this.passwordError = page.locator('text=Must be 5-72 characters long.');
|
||||
|
||||
const newsletterBlock = page.locator('.check-input');
|
||||
this.newsLetterCheckBox = newsletterBlock.getByRole('checkbox', {name: 'newsletter checkbox'});
|
||||
|
||||
Ссылка в новой задаче
Block a user