Skip to content

Commit

Permalink
Update expected accordion DOM structure in cypress tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jacbn committed Feb 11, 2025
1 parent e62dba9 commit fa004fd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/test/pages/Concept.cy.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ it('Concept pages should have no visual regressions', () => {
cy.get('[data-testid="loading"]').should('not.exist');

// open accordion
cy.get('.accordion-header > button:not(.active)').scrollIntoView();
cy.get('.accordion-header > button:not(.active)').click();
cy.get('.accordion > button.accordion-header:not(.active)').scrollIntoView();
cy.get('.accordion > button.accodtion-header:not(.active)').click();

cy.scrollTo('top');

Expand Down
2 changes: 1 addition & 1 deletion src/test/pages/Questions.cy.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ it('Question types\' regression test page should have no visual regressions', ()
cy.get('[data-testid="loading"]').should('not.exist');

// open all accordions (that weren't already open)
cy.get('.accordion-header > button:not(.active)').each(($el) => {
cy.get('.accordion > button.accordion-header:not(.active)').each(($el) => {
cy.wrap($el).scrollIntoView();
cy.wrap($el).click();
});
Expand Down

0 comments on commit fa004fd

Please sign in to comment.