Skip to content

Commit

Permalink
test(acceptance): acceptance tests werewolf role (#565)
Browse files Browse the repository at this point in the history
  • Loading branch information
antoinezanardi committed Oct 11, 2023
1 parent fdf28d0 commit 8cdb589
Show file tree
Hide file tree
Showing 2 changed files with 913 additions and 909 deletions.
25 changes: 25 additions & 0 deletions tests/acceptance/features/game/features/role/werewolf.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
@werewolf-role

Feature: 馃惡 Werewolf role

Scenario: 馃惡 Werewolves eat a player

Given a created game with options described in file no-sheriff-option.json and with the following players
| name | role |
| Antoine | villager |
| Juju | witch |
| Doudou | vile-father-of-wolves |
| Thom | werewolf |
Then the game's current play should be werewolves to eat
And the game's current play should be played by the following players
| name |
| Doudou |
| Thom |
And the game's current play occurrence should be on-nights

When the werewolves eat the player named Juju
Then the player named Juju should have the active eaten from werewolves attribute
And the game's current play should be witch to use-potions

When the player or group skips his turn
Then the player named Juju should be murdered by werewolves from eaten

0 comments on commit 8cdb589

Please sign in to comment.