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:
@ -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()
|
||||
|
Reference in New Issue
Block a user