Skip to content

Commit

Permalink
Fix: Correctly e2e test (#153)
Browse files Browse the repository at this point in the history
  • Loading branch information
lemmyadams authored Jul 15, 2024
1 parent 322fa62 commit fdc4c0f
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 fdc4c0f

Please sign in to comment.