Skip to content

Commit

Permalink
fix showTags cypress test
Browse files Browse the repository at this point in the history
  • Loading branch information
jonasongg committed Apr 19, 2024
1 parent e1cd222 commit cf06707
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions frontend/cypress/tests/chartView/chartView_showTags.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,19 @@ describe('show tags', () => {

cy.get('.zoom__title--tags')
.find('.tag')
.each(($tag) => correctTags.push($tag.text().trim())).then(() => {
cy.get('.summary-charts__title--tags')
.each(($tag) => correctTags.push($tag.text().trim()))
.then(() => {
cy.get('.summary-charts')
.first()
.find('.summary-charts__title--tags')
.find('.tag')
.each(($tag) => {
expect(correctTags).to.include($tag.text().trim());
});

cy.get('.summary-charts__title--tags')
cy.get('.summary-charts')
.first()
.find('.summary-charts__title--tags')
.find('.tag')
.should('have.length', correctTags.length);
});
Expand Down

0 comments on commit cf06707

Please sign in to comment.