Skip to content

Commit

Permalink
Update test backward compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
wpscholar committed May 30, 2023
1 parent 0a5bdc4 commit 9601e56
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/cypress/integration/navigation.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ describe('Navigation', function () {
should('not.have.class', 'active');
cy.get('.link-Marketplace').click();
cy.wait(500);
cy.hash().should('eq', '#/marketplace/featured');
cy.hash().should('contain', '#/marketplace');
cy
.get('.link-Marketplace')
.should('have.class', 'active');
Expand Down Expand Up @@ -98,7 +98,7 @@ describe('Navigation', function () {
.should('not.have.class', 'active');
});

it('Mobile nav links dispaly for mobile', () => {
it('Mobile nav links display for mobile', () => {
cy
.get('.mobile-toggle')
.should('not.exist');
Expand All @@ -115,8 +115,8 @@ describe('Navigation', function () {
cy.get('.mobile-toggle').click();
cy.wait(500);
cy.get('.mobile-link-Home').should('be.visible');
cy.get('button[aria-label="Close"]').should('be.visible')
cy.get('button[aria-label="Close"]').click();
cy.get('.components-modal__header button[aria-label]').as('close').should('be.visible')
cy.get('@close').click();
cy.get('.mobile-link-Home').should('not.exist');
});
});

0 comments on commit 9601e56

Please sign in to comment.