Skip to content

Commit

Permalink
test(@dpc-sdp/ripple-tide-search): fix falky maps test
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffdowdle committed Nov 14, 2024
1 parent bd49801 commit 181c039
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions examples/nuxt-app/test/features/maps/vsba.feature
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ Feature: School buildings map
Scenario: Click on cluster should zoom in
Given the "/api/tide/elasticsearch/elasticsearch_index_develop_node/_search" network request is stubbed with fixture "/map-table/vsba/response-all" and status 200 as alias "searchReq"
And I visit the page "/map"
And we wait for alias "searchReq"
And the map is loaded
When I click the map component at coordinates 650 429
When I wait 2 seconds
Expand Down
4 changes: 4 additions & 0 deletions packages/ripple-test-utils/step_definitions/common/mocks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,10 @@ Given(
}
)

Given('we wait for alias {string}', (alias: string) => {
cy.wait(`@${alias}`)
})

Given(
'the {string} network request is delayed by {int} milliseconds and stubbed with fixture {string}, status {int} and alias {string}',
(
Expand Down

0 comments on commit 181c039

Please sign in to comment.