Skip to content

Commit

Permalink
Correctly e2e test
Browse files Browse the repository at this point in the history
  • Loading branch information
lemmyadams committed Jul 12, 2024
1 parent 322fa62 commit 9e5cfe7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/e2e/accordion.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ describe('Accordion', function () {
cy.get('.accordion-item').eq(index).within(() => {
cy.get('.accordion-item__btn.is-visited').should('not.exist');
cy.get('.accordion-item__body-inner').should('not.be.visible');
cy.get('.accordion-item__title').should('contain', item.title).click();
cy.get('.accordion-item__title').should('contain', item.title);
cy.get('.accordion-item__title').as('btn').click();
cy.get('.accordion-item__btn.is-visited').should('exist');
cy.get('.accordion-item__body-inner')
.should('be.visible')
Expand Down

0 comments on commit 9e5cfe7

Please sign in to comment.