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

63 lines
2.2 KiB
Gherkin

@header
Feature: Unified App Header - Navigation and Scoring Card
Background:
Given the Fellowship SUT is running
And I am logged in as "frodo"
Scenario: Header displays on all main pages
When I navigate to the "dashboard"
Then the app header should be visible
And the page title should show "Dashboard" with icon
When I navigate to the "quests page"
Then the app header should be visible
And the page title should show "Quests" with icon
When I navigate to the "map"
Then the app header should be visible
And the page title should show "Middle-Earth Map" with icon
Scenario: Header navigation links work correctly
When I navigate to the "dashboard"
And I click on the "Quests" link in the header
Then I should be on the "quests" page
When I click on the "Middle-Earth Map" link in the header
Then I should be on the "map" page
When I click on the "Dashboard" link in the header
Then I should be on the "dashboard" page
Scenario: Current page link is highlighted in header
When I navigate to the "dashboard"
Then the "Dashboard" link in the header should be highlighted
When I navigate to the "quests page"
Then the "Quests" link in the header should be highlighted
When I navigate to the "map"
Then the "Middle-Earth Map" link in the header should be highlighted
Scenario: Scoring Card displays gold and completed quests on dashboard
When I navigate to the "dashboard"
Then the scoring card should be visible
And the gold value should be displayed
And the completed quests count should be displayed
And the average savings value should show ""
Scenario: Logout button works from header
When I navigate to the "dashboard"
And I click the "Leave Fellowship" button in the header
Then I should be redirected to the login page
Scenario: Header is responsive on mobile view
When I resize the browser to mobile size
And I navigate to the "dashboard"
Then the header should be visible and functional
And navigation links should be accessible
Scenario: Scoring Card handles zero values gracefully
When I navigate to the "dashboard"
Then the scoring card should be visible