-
-
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): bear tamer acceptance tests (#503)
- Loading branch information
1 parent
1f13ed2
commit 4800d60
Showing
9 changed files
with
39,963 additions
and
38,024 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
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
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
7 changes: 7 additions & 0 deletions
7
tests/acceptance/features/game/data/bear-tamer-bear-doesnt-growl-if-infected-option.json
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,7 @@ | ||
{ | ||
"roles": { | ||
"bearTamer": { | ||
"doesGrowlIfInfected": false | ||
} | ||
} | ||
} |
60 changes: 60 additions & 0 deletions
60
tests/acceptance/features/game/features/role/bear-tamer.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,60 @@ | ||
@bear-tamer-role | ||
|
||
Feature: 馃惢 Bear Tamer role | ||
|
||
Scenario: 馃惢 Bear Tamer's bear growls when one of his neighbor is a werewolf | ||
|
||
Given a created game with options described in file no-sheriff-option.json and with the following players | ||
| name | role | | ||
| Olivia | villager | | ||
| Antoine | bear-tamer | | ||
| JB | villager | | ||
| Thomas | werewolf | | ||
| Doudou | villager | | ||
Then the game's current play should be werewolves to eat | ||
|
||
When the werewolves eat the player named Olivia | ||
Then the player named Olivia should be murdered by werewolves from eaten | ||
And the player named Antoine should not have the active growled from bear-tamer attribute | ||
And the game's current play should be survivors to vote | ||
|
||
When the player or group skips his turn | ||
Then the game's current play should be werewolves to eat | ||
|
||
When the werewolves eat the player named Doudou | ||
Then the player named Doudou should be murdered by werewolves from eaten | ||
And the player named Antoine should have the active growled from bear-tamer attribute | ||
|
||
Scenario: 馃惢 Bear Tamer's bear growls when he is infected even if any of his neighbor is a werewolf | ||
|
||
Given a created game with options described in file no-sheriff-option.json and with the following players | ||
| name | role | | ||
| Olivia | villager | | ||
| Antoine | bear-tamer | | ||
| JB | villager | | ||
| Thomas | vile-father-of-wolves | | ||
| Doudou | villager | | ||
Then the game's current play should be werewolves to eat | ||
|
||
When the vile father of wolves infects the player named Antoine | ||
Then the player named Antoine should be alive | ||
And the player named Antoine should be on werewolves current side and originally be on villagers side | ||
And the player named Antoine should have the active growled from bear-tamer attribute | ||
And the game's phase should be day | ||
|
||
Scenario: 馃惢 Bear Tamer's bear doesn't growl when he is infected even if any of his neighbor is a werewolf with the right option | ||
|
||
Given a created game with options described in file no-sheriff-option.json, bear-tamer-bear-doesnt-growl-if-infected-option.json and with the following players | ||
| name | role | | ||
| Olivia | villager | | ||
| Antoine | bear-tamer | | ||
| JB | villager | | ||
| Thomas | vile-father-of-wolves | | ||
| Doudou | villager | | ||
Then the game's current play should be werewolves to eat | ||
|
||
When the vile father of wolves infects the player named Antoine | ||
Then the player named Antoine should be alive | ||
And the player named Antoine should be on werewolves current side and originally be on villagers side | ||
And the player named Antoine should not have the active growled from bear-tamer attribute | ||
And the game's phase should be day |
Oops, something went wrong.