lotr-sut/tests/e2e/features/map.feature
Fellowship Scholar f6a5823439 init commit
2026-03-29 20:07:56 +00:00

65 lines
2.3 KiB
Gherkin

@map
Feature: Map and Locations
Background:
Given the Fellowship SUT is running
Scenario: Public map is accessible without login
When I navigate to the map route without being logged in
Then the map should load
And I should see location markers on the map
Scenario: Map displays all location markers
Given I navigate to the map page
Then quest location markers should be visible for:
| The Shire |
| Rivendell |
| Moria |
| Lothlórien |
| Rohan |
| Mordor |
Scenario: Seller markers are distinct from quest markers
Given I am on the map page
Then seller markers should have different styling than quest markers
And seller markers should be identifiable as such
Scenario: Quest marker displays full quest information in popup
Given I am on the map page
When I click on a quest marker
Then a popup should appear with:
| Full quest title |
| Complete quest description |
| Quest status |
| Quest type |
| Quest priority |
| Location name |
| Action buttons |
Scenario: User can navigate to quest from map marker
Given I am on the map page
And there is a quest marker for "Defeat Sauron"
When I click on the quest marker
And I click the "View Quest" action button
Then I should be taken to the quest detail page
And the quest "Defeat Sauron" should be displayed
Scenario: User can navigate to seller from map marker
Given I am on the map page
And there is a seller marker
When I click on the seller marker
And I click the "Bargain" action button
Then the bargaining chat should initialize with the seller
Scenario: Map interaction supports quest filtering from navigation
Given I navigate to the map with query parameter for a specific location
When the map loads
Then only marker relevant to the selected location should be highlighted
And the location context should be clear
Scenario: Clicking location marker shows location details
Given I am on the map page
When I click on a location marker (non-quest, non-seller)
Then a popup should show the location information
And I should see a brief description of that location in Middle-earth