cypess: refactormapscenarios into a single scenario

This commit is contained in:
mahula 2025-03-25 08:51:25 +01:00
parent 01acc6628a
commit 153ad979a4
2 changed files with 5 additions and 14 deletions

View File

@ -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')
})

View File

@ -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
And the search input control should be present
And the geo location control should be present
And the layers control should be present