Skip to content

Commit bf42bb4

Browse files
committed
updated tests
1 parent 1698cdc commit bf42bb4

File tree

7 files changed

+1177392
-180188
lines changed

7 files changed

+1177392
-180188
lines changed

client/cypress/component/groundwater-level/GroundwaterLevel.cy.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import WaterPortal from "@/components/water-portal/WaterPortal.vue";
22
import { portalHandler } from '@/utils/reactor.js';
33
import groundWaterLevelStations from '../../fixtures/groundWaterLevelStations.json';
44

5-
const pointCount = groundWaterLevelStations.features.length;
5+
const pointCount = groundWaterLevelStations.features.length - 1;
66

77
describe('<GroundwaterLevel />', () => {
88
beforeEach(() => {
@@ -31,7 +31,7 @@ describe('<GroundwaterLevel />', () => {
3131
}
3232
});
3333
portalHandler.updateViewType('wells');
34-
cy.get('.map-points-list > div:nth-child(1) > .q-item').click();
34+
cy.get('.q-item').first().click();
3535
// details are displayed
3636
cy.get('.selected-point > pre:nth-child(1)').should('not.be.empty');
3737
cy.get('.q-btn > span > span').contains('View More').click();

client/cypress/component/groundwater/Groundwater.cy.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ describe('<GroundWaterQuality />', () => {
4545
.first()
4646
.click();
4747
cy.wait(1000);
48-
cy.get('.map-points-list > div:nth-child(1) > .q-item').click();
48+
cy.get('.q-item').first().click();
4949
// details are displayed
5050
cy.get('.selected-point').should('not.be.empty');
5151
// open report

client/cypress/component/surfacewater/SurfaceWater.cy.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ describe('<SurfaceWater />', () => {
3131
}
3232
});
3333
portalHandler.updateViewType('surface');
34-
cy.get('.map-points-list > div:nth-child(1) > .q-item').click();
34+
cy.get('.q-item').first().click();
3535
// details are displayed
3636
cy.get('.selected-point > pre:nth-child(1)').should('not.be.empty');
3737
// open report

0 commit comments

Comments
 (0)