Add a couple feature tests
This commit is contained in:
parent
2ea949c7e1
commit
205d80dbd9
|
|
@ -0,0 +1,22 @@
|
||||||
|
|
||||||
|
Feature: Create a tournament
|
||||||
|
Background: User is on create page
|
||||||
|
Given User navigates to Create Page
|
||||||
|
|
||||||
|
Scenario: Not logged-in user cannot create a tournament
|
||||||
|
When user is not logged in
|
||||||
|
Then Login should be shown
|
||||||
|
|
||||||
|
Scenario: Logged in user can create a tournament
|
||||||
|
Given a user is logged in
|
||||||
|
Then the tournament creation should be shown
|
||||||
|
|
||||||
|
Scenario: Creating a tournament should redirect to the tournament
|
||||||
|
Given a user is logged in
|
||||||
|
When I enter tournament name "Gherkin Test Tournament"
|
||||||
|
And I enter team "1"
|
||||||
|
And I enter team "2"
|
||||||
|
And I enter team "3"
|
||||||
|
And I enter team "4"
|
||||||
|
And I click on create
|
||||||
|
Then the user should be redirected to a tournament
|
||||||
|
|
@ -0,0 +1,19 @@
|
||||||
|
|
||||||
|
Feature: Edit Teams
|
||||||
|
Background: User is on a tournament edit page
|
||||||
|
Given User navigates to Tournament Edit Page he owns
|
||||||
|
|
||||||
|
Scenario: Normal Name is accepted
|
||||||
|
When I enter a team name "someunusedteamname"
|
||||||
|
And I click on change
|
||||||
|
Then a success notification should pop up
|
||||||
|
|
||||||
|
Scenario: Empty name is not accepted
|
||||||
|
When I enter a team name ""
|
||||||
|
And I click on change
|
||||||
|
Then a fail notification should pop up
|
||||||
|
|
||||||
|
Scenario: Duplicate names are not accepted
|
||||||
|
When I enter a team name that is already taken
|
||||||
|
And I click on change
|
||||||
|
Then a fail notification should pop up
|
||||||
Loading…
Reference in New Issue