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:
@ -60,7 +60,7 @@ describe('Landing page', () => {
|
||||
|
||||
cy.viewport(1199, 660)
|
||||
.get(selectors.landingPageImage)
|
||||
.should('not.be.visible');
|
||||
.should('not.exist');
|
||||
});
|
||||
|
||||
it('Has links to all the certifications', function() {
|
||||
|
@ -42,7 +42,7 @@ describe('Navbar', () => {
|
||||
cy.get('input').clear();
|
||||
});
|
||||
|
||||
cy.get('div.ais-Hits').should('not.be.visible');
|
||||
cy.get('div.ais-Hits').should('not.exist');
|
||||
});
|
||||
|
||||
it('Should have a Sign In button', () => {
|
||||
|
@ -95,7 +95,7 @@ describe('Superblocks and Blocks', () => {
|
||||
cy.contains(superBlockNames[0])
|
||||
.click()
|
||||
.should('have.attr', 'aria-expanded', 'false');
|
||||
cy.contains('Basic HTML and HTML5').should('not.be.visible');
|
||||
cy.contains('Basic HTML and HTML5').should('not.exist');
|
||||
|
||||
cy.contains(superBlockNames[0])
|
||||
.click()
|
||||
@ -107,9 +107,7 @@ describe('Superblocks and Blocks', () => {
|
||||
cy.contains('Basic HTML and HTML5')
|
||||
.click()
|
||||
.should('have.attr', 'aria-expanded', 'false');
|
||||
cy.contains('Introduction to Basic HTML and HTML5').should(
|
||||
'not.be.visible'
|
||||
);
|
||||
cy.contains('Introduction to Basic HTML and HTML5').should('not.exist');
|
||||
|
||||
cy.contains('Basic HTML and HTML5')
|
||||
.click()
|
||||
|
@ -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