feat: add wordmark navigation feature test (issue #24)
- Add wordmark-navigation.feature with 3 scenarios - Add step definitions for clicking wordmark and page assertions - Test unauthenticated, player, and admin navigation paths
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
Feature: Wordmark Navigation
|
||||
As a user
|
||||
I want the EuchreCamp wordmark to navigate to my appropriate homepage
|
||||
So that I can quickly access my relevant content
|
||||
|
||||
@happy-path @navigation @issue-24
|
||||
Scenario: Unauthenticated user clicks wordmark goes to public homepage
|
||||
Given I am on the home page
|
||||
When I click the "EuchreCamp" wordmark
|
||||
Then I should be on the home page
|
||||
And I should see "Top 10 Players"
|
||||
And I should see "Sign In"
|
||||
|
||||
@happy-path @navigation @authenticated @issue-24
|
||||
Scenario: Authenticated player clicks wordmark goes to their profile
|
||||
Given I am logged in as a player
|
||||
When I click the "EuchreCamp" wordmark
|
||||
Then I should be redirected to my profile page
|
||||
And I should see "Welcome"
|
||||
|
||||
@happy-path @navigation @authenticated @issue-24
|
||||
Scenario: Authenticated admin clicks wordmark goes to admin dashboard
|
||||
Given I am logged in as a club admin
|
||||
When I click the "EuchreCamp" wordmark
|
||||
Then I should be on the admin page
|
||||
And I should see "Admin"
|
||||
Reference in New Issue
Block a user