-
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test(acceptance): angel acceptance tests (#402)
- Loading branch information
1 parent
ac1702b
commit 5bdb6e8
Showing
1 changed file
with
56 additions
and
0 deletions.
There are no files selected for viewing
56 changes: 56 additions & 0 deletions
56
tests/acceptance/features/game/features/role/angel.feature
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,56 @@ | ||
Feature: 馃懠 Angel role | ||
|
||
Scenario: 馃懠 Angel doesn't win because he is powerless | ||
|
||
Given a created game with options described in file no-sheriff-option.json and with the following players | ||
| name | role | | ||
| Antoine | angel | | ||
| Olivia | ancient | | ||
| JB | villager | | ||
| Thomas | werewolf | | ||
Then the game's current play should be all to vote because angel-presence | ||
|
||
When all vote with the following votes | ||
| source | vote | | ||
| Antoine | Olivia | | ||
| JB | Olivia | | ||
Then the player named Olivia should be murdered by all from vote | ||
And 2 of the following players should have the powerless from ancient attribute | ||
| name | | ||
| Antoine | | ||
| JB | | ||
And the game's current play should be werewolves to eat | ||
|
||
When the werewolves eat the player named Antoine | ||
Then the player named Antoine should be murdered by werewolves from eaten | ||
And the game's status should be playing | ||
|
||
Scenario: 馃懠 Angel doesn't win if he is murdered on the second vote | ||
|
||
Given a created game with options described in file no-sheriff-option.json and with the following players | ||
| name | role | | ||
| Antoine | angel | | ||
| Olivia | villager | | ||
| JB | villager | | ||
| Thomas | werewolf | | ||
Then the game's current play should be all to vote because angel-presence | ||
|
||
When all vote with the following votes | ||
| source | vote | | ||
| Antoine | Olivia | | ||
| JB | Olivia | | ||
Then the player named Olivia should be murdered by all from vote | ||
And the game's current play should be werewolves to eat | ||
|
||
When the werewolves eat the player named JB | ||
Then the player named JB should be murdered by werewolves from eaten | ||
And the game's current play should be all to vote | ||
|
||
When all vote with the following votes | ||
| source | vote | | ||
| Thomas | Antoine | | ||
Then the player named Antoine should be murdered by all from vote | ||
And the game's status should be over | ||
But the game's winners should be werewolves with the following players | ||
| name | | ||
| Thomas | |