chore(cypress): migrate to Cypress v6 (#40396)
* Update Cypress version from 5.3.0 to 6.0.0 * Replace `not.be.visible` with `not.exist` Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
This commit is contained in:
@ -89,12 +89,12 @@ describe('Username input field', () => {
|
||||
.clear({ force: true })
|
||||
.type('twaha', { force: true });
|
||||
|
||||
cy.contains('Username is available.').should('not.be.visible');
|
||||
cy.contains('Username not available.').should('not.be.visible');
|
||||
cy.contains('Username is available.').should('not.exist');
|
||||
cy.contains('Username not available.').should('not.exist');
|
||||
cy.contains(
|
||||
'Please note, changing your username will also change ' +
|
||||
'the URL to your profile and your certifications.'
|
||||
).should('not.be.visible');
|
||||
).should('not.exist');
|
||||
|
||||
cy.get('@usernameForm')
|
||||
.contains('Save')
|
||||
@ -191,9 +191,7 @@ describe('Username input field', () => {
|
||||
cy.get('button').click();
|
||||
});
|
||||
|
||||
cy.contains('We have updated your username to bjorno').should(
|
||||
'not.be.visible'
|
||||
);
|
||||
cy.contains('We have updated your username to bjorno').should('not.exist');
|
||||
|
||||
cy.resetUsername();
|
||||
});
|
||||
|
Reference in New Issue
Block a user