Skip to content

Commit

Permalink
e2e(DH): fix mock WFS urls
Browse files Browse the repository at this point in the history
ogc-client now uses the proper WFS download urls (as advertised in the capabilities
document) so they need to be adjusted in the e2e tests.
  • Loading branch information
jahow committed Oct 29, 2024
1 parent ef56d05 commit c51362e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions apps/datahub-e2e/src/e2e/datasetDetailPage.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,14 @@ beforeEach(() => {
)
cy.intercept(
'GET',
'/geoserver/insee/ows?SERVICE=WFS&REQUEST=GetFeature&VERSION=2.0.0&TYPENAMES=insee%3Arectangles_200m_menage_erbm&OUTPUTFORMAT=application%2Fjson*',
'/geoserver/insee/wfs?SERVICE=WFS&REQUEST=GetFeature&VERSION=2.0.0&TYPENAMES=insee%3Arectangles_200m_menage_erbm&OUTPUTFORMAT=application%2Fjson*',
{
fixture: 'insee-rectangles_200m_menage_erbm.json',
}
)
cy.intercept(
'GET',
'/geoserver/insee/ows?SERVICE=WFS&REQUEST=GetFeature&VERSION=2.0.0&TYPENAMES=insee%3Arectangles_200m_menage_erbm&OUTPUTFORMAT=csv',
'/geoserver/insee/wfs?SERVICE=WFS&REQUEST=GetFeature&VERSION=2.0.0&TYPENAMES=insee%3Arectangles_200m_menage_erbm&OUTPUTFORMAT=csv',
{
fixture: 'insee-rectangles_200m_menage_erbm.csv',
}
Expand Down Expand Up @@ -489,7 +489,7 @@ describe('dataset pages', () => {
.find('gn-ui-download-item')
.first()
.click()
cy.readFile(path.join('cypress/downloads', 'ows.csv')).as(
cy.readFile(path.join('cypress/downloads', 'wfs.csv')).as(
'downloadedFile'
)
cy.get('@downloadedFile').should('exist')
Expand Down

0 comments on commit c51362e

Please sign in to comment.