diff --git a/examples/nuxt-app/test/features/maps/vsba.feature b/examples/nuxt-app/test/features/maps/vsba.feature index dca4fe327..55ffbd6d0 100644 --- a/examples/nuxt-app/test/features/maps/vsba.feature +++ b/examples/nuxt-app/test/features/maps/vsba.feature @@ -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 diff --git a/packages/ripple-test-utils/step_definitions/common/mocks.ts b/packages/ripple-test-utils/step_definitions/common/mocks.ts index dc60b3a77..4cea9d7b7 100644 --- a/packages/ripple-test-utils/step_definitions/common/mocks.ts +++ b/packages/ripple-test-utils/step_definitions/common/mocks.ts @@ -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}', (