Skip to content

Commit

Permalink
test(wild-child): acceptance test for powerless Wild Child not joinin…
Browse files Browse the repository at this point in the history
…g the werewolves side (#783)

Closes #754
  • Loading branch information
antoinezanardi committed Dec 25, 2023
1 parent b316f6c commit ed101ba
Showing 1 changed file with 27 additions and 1 deletion.
28 changes: 27 additions & 1 deletion tests/acceptance/features/game/features/role/wild-child.feature
Original file line number Diff line number Diff line change
Expand Up @@ -152,4 +152,30 @@ Feature: 🐒 Wild Child role
Then the request should have failed with status code 400
And the request exception status code should be 400
And the request exception message should be "Bad game play payload"
And the request exception error should be "Wild child can't choose this target as a model"
And the request exception error should be "Wild child can't choose this target as a model"

Scenario: 🐒 Wild Child doesn't join the werewolves side if he's powerless

When a created game with options described in file no-sheriff-option.json and with the following players
| name | role |
| Antoine | wild-child |
| Olivia | werewolf |
| JB | elder |
| Maxime | villager |
Then the game's current play should be wild-child to choose-model

When the wild child chooses the player named JB as a model
Then 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 alive
And the game's current play should be survivors to vote

When the survivors vote with the following votes
| voter | target |
| Maxime | JB |
Then the player named JB should be murdered by survivors from vote
And the game's current play should be survivors to bury-dead-bodies

When the survivors bury dead bodies
Then the player named Antoine should be on villagers current side and originally be on villagers side

0 comments on commit ed101ba

Please sign in to comment.