-
-
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): acceptances tests for three brothers (#458)
- Loading branch information
1 parent
caa3960
commit df6c976
Showing
8 changed files
with
14,843 additions
and
14,872 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
7 changes: 7 additions & 0 deletions
7
tests/acceptance/features/game/data/three-brothers-never-waking-up-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": { | ||
"threeBrothers": { | ||
"wakingUpInterval": 0 | ||
} | ||
} | ||
} |
7 changes: 7 additions & 0 deletions
7
tests/acceptance/features/game/data/three-brothers-waking-up-every-night-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": { | ||
"threeBrothers": { | ||
"wakingUpInterval": 1 | ||
} | ||
} | ||
} |
80 changes: 80 additions & 0 deletions
80
tests/acceptance/features/game/features/role/three-brothers.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,80 @@ | ||
@three-brothers-role | ||
|
||
Feature: 👨👨👦 Three Brothers role | ||
|
||
Scenario: 👨👨👦 Three Brothers are called every other night and not called anymore if two die | ||
Given a created game with options described in file no-sheriff-option.json and with the following players | ||
| name | role | | ||
| Antoine | three-brothers | | ||
| Olivia | three-brothers | | ||
| Thomas | three-brothers | | ||
| JB | werewolf | | ||
| Maxime | villager | | ||
| Julien | villager | | ||
Then the game's current play should be three-brothers to meet-each-other | ||
|
||
When the three brothers meet each other | ||
Then the game's current play should be werewolves to eat | ||
|
||
When the werewolves eat the player named Thomas | ||
Then the player named Thomas should be murdered by werewolves from eaten | ||
And the game's current play should be all 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 Maxime | ||
Then the player named Maxime should be murdered by werewolves from eaten | ||
And the game's current play should be all to vote | ||
|
||
When the player or group skips his turn | ||
Then the game's current play should be three-brothers to meet-each-other | ||
|
||
When the three brothers meet each other | ||
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 game's current play should be all 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 Julien | ||
Then the player named Julien should be murdered by werewolves from eaten | ||
And the game's current play should be all to vote | ||
|
||
When the player or group skips his turn | ||
Then the game's current play should be werewolves to eat | ||
|
||
Scenario: 👨👨👦 Three Brothers are never called when options say they are not called at all | ||
Given a created game with options described in file no-sheriff-option.json, three-brothers-never-waking-up-option.json and with the following players | ||
| name | role | | ||
| Antoine | three-brothers | | ||
| Olivia | three-brothers | | ||
| Thomas | three-brothers | | ||
| JB | werewolf | | ||
| Maxime | villager | | ||
| Julien | villager | | ||
Then the game's current play should be werewolves to eat | ||
|
||
Scenario: 👨👨👦 Three Brothers are waking up every night when options say they are called every night | ||
Given a created game with options described in file no-sheriff-option.json, three-brothers-waking-up-every-night-option.json and with the following players | ||
| name | role | | ||
| Antoine | three-brothers | | ||
| Olivia | three-brothers | | ||
| Thomas | three-brothers | | ||
| JB | werewolf | | ||
| Maxime | villager | | ||
| Julien | villager | | ||
Then the game's current play should be three-brothers to meet-each-other | ||
|
||
When the three brothers meet each other | ||
Then the game's current play should be werewolves to eat | ||
|
||
When the werewolves eat the player named Thomas | ||
Then the player named Thomas should be murdered by werewolves from eaten | ||
And the game's current play should be all to vote | ||
|
||
When the player or group skips his turn | ||
Then the game's current play should be three-brothers to meet-each-other |
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
Oops, something went wrong.