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

@ -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', () => {

View File

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