Skip to content

Commit

Permalink
Fix navigation tests
Browse files Browse the repository at this point in the history
  • Loading branch information
wpscholar committed May 2, 2023
1 parent 38a1627 commit 1c1689e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 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');
cy.hash().should('eq', '#/marketplace/featured');
cy
.get('.link-Marketplace')
.should('have.class', 'active');
Expand Down Expand Up @@ -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 dialog"]').should('be.visible')
cy.get('button[aria-label="Close dialog"]').click();
cy.get('button[aria-label="Close"]').should('be.visible')
cy.get('button[aria-label="Close"]').click();
cy.get('.mobile-link-Home').should('not.exist');
});
});

0 comments on commit 1c1689e

Please sign in to comment.