Skip to content

Commit

Permalink
chore: set absolute date since expecting a specific value in result
Browse files Browse the repository at this point in the history
  • Loading branch information
jenniferarnesen committed Dec 3, 2024
1 parent 7db4fe3 commit 295ed09
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions cypress/integration/layers/thematiclayer.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,8 @@ context('Thematic Layers', () => {
.selectIndicatorGroup('Stock')
.selectIndicator('BCG Stock PHU')
.selectTab('Period')
.selectRelativePeriod('This month')
.typeStartDate(`${CURRENT_YEAR}-11-01`)
.typeEndDate(`${CURRENT_YEAR}-11-30`)
.selectTab('Style')
.selectIncludeNoDataOU()
.selectTab('Org Units')
Expand Down Expand Up @@ -138,7 +139,7 @@ context('Thematic Layers', () => {
cy.get('#dhis2-map-container')
.findByDataTest('dhis2-uicore-componentcover', EXTENDED_TIMEOUT)
.should('not.exist')
cy.get('.dhis2-map').click('center') //Click somewhere on the map
cy.get('.dhis2-map').click('center') //Click in the middle of the map

cy.get('.maplibregl-popup').contains('Value: 0').should('be.visible')

Expand All @@ -159,7 +160,7 @@ context('Thematic Layers', () => {
cy.get('#dhis2-map-container')
.findByDataTest('dhis2-uicore-componentcover', EXTENDED_TIMEOUT)
.should('not.exist')
cy.get('.dhis2-map').click('center') //Click somewhere on the map
cy.get('.dhis2-map').click('center') //Click in the middle of the map

cy.get('.maplibregl-popup')
.contains('Value: No data')
Expand Down

0 comments on commit 295ed09

Please sign in to comment.