Skip to content

Commit

Permalink
test: use .leaflet-marker-icon instead of .leaflet-container
Browse files Browse the repository at this point in the history
ci tests can't find .leaflet-container node
  • Loading branch information
TheGreatRefrigerator committed Jul 11, 2024
1 parent 51babfb commit 59e940e
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions cypress/e2e/example.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,37 +6,37 @@ describe('Test open route services endpoint components', () => {
//test directions
cy.visit('/')
cy.contains('h3', 'You’ve successfully created a project with')
cy.get('.leaflet-container')
cy.get('.leaflet-marker-icon').should('have.length', 4)
cy.get('.ors_call').should('contain.text', 'routing')
//test elevation
cy.contains('button','Elevation').click()
cy.get('.leaflet-container')
cy.get('.leaflet-marker-icon').should('have.length', 2)
cy.get('.ors_call').should('contain.text', 'geometry')

//test geocode
cy.contains('button','Geocode').click()
cy.get('.leaflet-container')
cy.get('.leaflet-marker-icon').should('have.length', 10)
cy.get('.ors_call').should('contain.text', 'geocoding')

//test Isochrones
cy.contains('button','Isochrones').click()
cy.get('.leaflet-container')
cy.get('.leaflet-marker-icon').should('have.length', 3)
cy.get('.ors_call').should('contain.text', 'isochrones')

//test Matrix
cy.contains('button','Matrix').click()
cy.get('.leaflet-container')
cy.get('.leaflet-marker-icon').should('have.length', 3)
cy.get('.ors_call').should('contain.text', 'matrix')

//test Optimization
cy.contains('button','Optimization').click()
cy.get('.leaflet-container')
cy.get('.leaflet-marker-icon').should('have.length', 5)
cy.get('.ors_call').should('contain.text', 'job')
cy.get('.ors_call').should('contain.text', 'vehicle')

//test Pois
cy.contains('button','Pois').click()
cy.get('.leaflet-container')
cy.get('.leaflet-marker-icon').should('have.length', 33)
cy.get('.ors_call').should('contain.text', 'pois')
})
})

0 comments on commit 59e940e

Please sign in to comment.