Skip to content

Commit

Permalink
Fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Spytex committed Jul 17, 2023
1 parent fb3ea0a commit 578fbe9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cypress/e2e/layout.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ describe('Layout', () => {
});

it('should toggle color mode when color mode button is clicked', () => {
cy.get('.chakra-stack > .chakra-button').click();
cy.get('.css-70qvj9 > .chakra-stack > .chakra-button').click();
cy.get('html').should('have.attr', 'data-theme', 'dark');
cy.get('.chakra-stack > .chakra-button').click();
cy.get('.css-70qvj9 > .chakra-stack > .chakra-button').click();
cy.get('html').should('have.attr', 'data-theme', 'light');
});
});

0 comments on commit 578fbe9

Please sign in to comment.