Skip to content

Commit

Permalink
test(acceptance): angel acceptance tests (#402)
Browse files Browse the repository at this point in the history
  • Loading branch information
antoinezanardi committed Aug 14, 2023
1 parent ac1702b commit 5bdb6e8
Showing 1 changed file with 56 additions and 0 deletions.
56 changes: 56 additions & 0 deletions tests/acceptance/features/game/features/role/angel.feature
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 |

0 comments on commit 5bdb6e8

Please sign in to comment.