Skip to content

Commit

Permalink
updates tests
Browse files Browse the repository at this point in the history
  • Loading branch information
andresgnlez committed May 14, 2024
1 parent 3b495a8 commit b24aaaa
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions client/cypress/e2e/analysis/filters-map.cy.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
describe('Analysis filters', () => {
beforeEach(() => {
// cy.intercept('GET', '/api/v1/indicators?sort=name', {
// fixture: 'indicators/index',
// }).as('fetchIndicators');
cy.intercept('GET', '/api/v1/indicators*', {
fixture: 'indicators/index',
}).as('fetchActiveIndicators');
Expand Down Expand Up @@ -32,7 +29,7 @@ describe('Analysis filters', () => {
const firstIndicator = interception.response.body?.data[0];
cy.get('[data-testid="select-indicators-filter"]').should(
'contain',
firstIndicator?.attributes.name,
firstIndicator?.attributes.metadata.short_name,
);
cy.url().should('include', `indicators=${firstIndicator?.id}`);
});
Expand All @@ -43,7 +40,7 @@ describe('Analysis filters', () => {
const thirdIndicator = interception.response.body?.data[2];
cy.get('[data-testid="select-indicators-filter"]')
.type('{downarrow}{downarrow}{enter}')
.should('contain', thirdIndicator?.attributes.name);
.should('contain', thirdIndicator?.attributes.metadata.short_name);
cy.url().should('include', `indicators=${thirdIndicator?.id}`);
});
});
Expand Down

0 comments on commit b24aaaa

Please sign in to comment.