-
-
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 two sisters (#455)
- Loading branch information
1 parent
2aae75b
commit caa3960
Showing
7 changed files
with
23,420 additions
and
23,166 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/two-sisters-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": { | ||
"twoSisters": { | ||
"wakingUpInterval": 0 | ||
} | ||
} | ||
} |
7 changes: 7 additions & 0 deletions
7
tests/acceptance/features/game/data/two-sisters-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": { | ||
"twoSisters": { | ||
"wakingUpInterval": 1 | ||
} | ||
} | ||
} |
72 changes: 72 additions & 0 deletions
72
tests/acceptance/features/game/features/role/two-sisters.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,72 @@ | ||
@two-sisters-role | ||
Feature: 👯 Two sisters role | ||
|
||
Scenario: 👯 Two sisters are called every other night and not called anymore if one dies | ||
Given a created game with options described in file no-sheriff-option.json and with the following players | ||
| name | role | | ||
| Antoine | two-sisters | | ||
| Olivia | two-sisters | | ||
| JB | werewolf | | ||
| Thomas | villager | | ||
| Maxime | villager | | ||
| Julien | villager | | ||
Then the game's current play should be two-sisters to meet-each-other | ||
|
||
When the two sisters meet each other | ||
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 | ||
|
||
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 two-sisters to meet-each-other | ||
|
||
When the two sisters meet each other | ||
Then 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 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: 👯 Two sisters are called never called when options say they are not called | ||
Given a created game with options described in file no-sheriff-option.json, two-sisters-never-waking-up-option.json and with the following players | ||
| name | role | | ||
| Antoine | two-sisters | | ||
| Olivia | two-sisters | | ||
| JB | werewolf | | ||
| Thomas | villager | | ||
| Maxime | villager | | ||
| Julien | villager | | ||
Then the game's current play should be werewolves to eat | ||
|
||
Scenario: 👯 Two sisters wake up every night when options say they are called every night | ||
Given a created game with options described in file no-sheriff-option.json, two-sisters-waking-up-every-night-option.json and with the following players | ||
| name | role | | ||
| Antoine | two-sisters | | ||
| Olivia | two-sisters | | ||
| JB | werewolf | | ||
| Thomas | villager | | ||
| Maxime | villager | | ||
| Julien | villager | | ||
Then the game's current play should be two-sisters to meet-each-other | ||
|
||
When the two sisters meet each other | ||
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 two-sisters 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
Oops, something went wrong.