Skip to content

Commit

Permalink
fix : revert not working fixture and rise await time
Browse files Browse the repository at this point in the history
  • Loading branch information
cmoinier committed May 3, 2024
1 parent 4b5f776 commit 310b95d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 52 deletions.
11 changes: 3 additions & 8 deletions apps/datahub-e2e/src/e2e/datasetDetailPage.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -590,17 +590,10 @@ describe('api cards', () => {
})
})

describe.only('api form', () => {
describe('api form', () => {
beforeEach(() => {
cy.visit('/dataset/accroche_velos')
cy.get('gn-ui-api-card').first().find('button').click()
cy.intercept(
'GET',
'https://mel.integration.apps.gs-fr-prod.camptocamp.com/data/ogcapi/collections/aires-covoiturage?f=json',
{
fixture: 'aires-covoiturage.json',
}
)
cy.get('gn-ui-record-api-form').children('div').as('apiForm')
})
it('should have request inputs', () => {
Expand Down Expand Up @@ -648,6 +641,8 @@ describe.only('api form', () => {
cy.get('@secondInput').clear()
cy.get('@secondInput').type('87')

// eslint-disable-next-line cypress/no-unnecessary-waiting
cy.wait(4000)
cy.get('@apiForm').find('gn-ui-dropdown-selector').as('dropdown')
cy.get('@dropdown').eq(0).selectDropdownOption('geojson')

Expand Down
44 changes: 0 additions & 44 deletions apps/datahub-e2e/src/fixtures/aires-covoiturage.json

This file was deleted.

0 comments on commit 310b95d

Please sign in to comment.