-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from adamdaley/master
Added features for being told its my turn and its my draw
- Loading branch information
Showing
2 changed files
with
44 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
Feature: Player is told it's a draw | ||
As a player | ||
I want to be told it's a draw | ||
So that I know the result was a draw | ||
|
||
Scenario: It is a draw | ||
Given I am on the "game page" | ||
When The game results in a draw | ||
Then I should see a message saying "It's a draw" | ||
|
||
Scenario: I win | ||
Given I am on the "game page" | ||
When I win the game | ||
Then I should not see a message saying "It's a draw" | ||
|
||
Scenario: I lose | ||
Given I am on the "game page" | ||
When I lose the game | ||
Then I should not see a message saying "It's a draw" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
Feature: Player is told it's their turn | ||
As a player | ||
I want to be told it's my turn | ||
So that I know when I can make a move | ||
|
||
Scenario: It is the start of the game | ||
Given I am on the "game page" | ||
And I am "player1" | ||
When The game starts | ||
Then I should see a message saying "It is your turn" | ||
|
||
Scenario: It is my turn to make a move | ||
Given I am on the "game page" | ||
When My opponent makes a move | ||
Then I should see a message saying "It is your turn" | ||
|
||
Scenario: When I finish playing a move | ||
Given I am on the "game page" | ||
When I complete my move | ||
Then I should not see a message saying "It is your turn" | ||
|
||
Scenario: When the game ends | ||
Given I am on the "game page" | ||
When A game ends | ||
Then I should not see a message saying "It is your turn" |