From 153ad979a4d2f089b742f072739d86e3982a5844 Mon Sep 17 00:00:00 2001 From: mahula Date: Tue, 25 Mar 2025 08:51:25 +0100 Subject: [PATCH] cypess: refactormapscenarios into a single scenario --- cypress/support/step_definitions/map.ts | 2 +- features/Map.feature | 17 ++++------------- 2 files changed, 5 insertions(+), 14 deletions(-) diff --git a/cypress/support/step_definitions/map.ts b/cypress/support/step_definitions/map.ts index bee127e5..cbe2819d 100644 --- a/cypress/support/step_definitions/map.ts +++ b/cypress/support/step_definitions/map.ts @@ -16,7 +16,7 @@ Then('the search input control should be present', () => { cy.get('.tw-input').should('be.visible') }) -Then('the geolocation control should be present', () => { +Then('the geo location control should be present', () => { cy.get('div.tw-card:nth-child(2) > div:nth-child(1)').should('be.visible') }) diff --git a/features/Map.feature b/features/Map.feature index c02662f8..bf295d3e 100644 --- a/features/Map.feature +++ b/features/Map.feature @@ -3,18 +3,9 @@ Feature: Map I want to have the leaflet map and its control elements available To be able to interact with the map - Scenario: Map Component + Scenario: The map and its control elements are available Given I am on the map page Then the map component should be present - - Scenario: Search Control - Given I am on the map page - Then the search input control should be present - - Scenario: Geolocation Control - Given I am on the map page - Then the geolocation control should be present - - Scenario: Layers Control - Given I am on the map page - Then the layers control should be present \ No newline at end of file + And the search input control should be present + And the geo location control should be present + And the layers control should be present