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:
Twaha Rahman
2020-12-07 16:02:52 +06:00
committed by GitHub
parent 080154b34f
commit bf0c49f9b4
7 changed files with 42 additions and 177 deletions

View File

@ -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();
});