-
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test(acceptance): stuttering judge acceptance tests (#469)
- Loading branch information
1 parent
3e908ee
commit 8a759c3
Showing
6 changed files
with
53,857 additions
and
55,385 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
20 | ||
20.5.1 |
2 changes: 1 addition & 1 deletion
2
src/modules/game/constants/game-options/game-options.constant.ts
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/stuttering-judge-two-vote-requests-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": { | ||
"stutteringJudge": { | ||
"voteRequestsCount": 2 | ||
} | ||
} | ||
} |
77 changes: 77 additions & 0 deletions
77
tests/acceptance/features/game/features/role/stuttering-judge.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,77 @@ | ||
@stuttering-judge-role | ||
|
||
Feature: ⚖️ Stuttering Judge Role | ||
|
||
Scenario: ⚖️ Stuttering Judge chooses his sign and can ask for another vote when all voted | ||
Given a created game with options described in file no-sheriff-option.json and with the following players | ||
| name | role | | ||
| Antoine | stuttering-judge | | ||
| Olivia | werewolf | | ||
| JB | villager | | ||
| Camille | villager | | ||
| Thomas | villager | | ||
Then the game's current play should be stuttering-judge to choose-sign | ||
|
||
When the stuttering judge chooses his sign | ||
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 murdered by werewolves from eaten | ||
And the game's current play should be all to vote | ||
|
||
When all vote with the following votes and the stuttering judge does his sign | ||
| voter | target | | ||
| Olivia | Antoine | | ||
| Camille | Antoine | | ||
Then the player named Antoine should be murdered by all from vote | ||
And the game's current play should be all to vote because stuttering-judge-request | ||
|
||
|
||
Scenario: ⚖️ Stuttering Judge chooses his sign and can ask for another vote even if all did not vote | ||
Given a created game with options described in file no-sheriff-option.json and with the following players | ||
| name | role | | ||
| Antoine | stuttering-judge | | ||
| Olivia | werewolf | | ||
| JB | villager | | ||
| Camille | villager | | ||
| Thomas | villager | | ||
Then the game's current play should be stuttering-judge to choose-sign | ||
|
||
When the stuttering judge chooses his sign | ||
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 murdered by werewolves from eaten | ||
And the game's current play should be all to vote | ||
|
||
When nobody vote and the stuttering judge does his sign | ||
Then the game's current play should be all to vote because stuttering-judge-request | ||
|
||
Scenario: ⚖️ Stuttering Judge can request more votes if options allow him | ||
Given a created game with options described in file no-sheriff-option.json, stuttering-judge-two-vote-requests-option.json and with the following players | ||
| name | role | | ||
| Antoine | stuttering-judge | | ||
| Olivia | werewolf | | ||
| JB | villager | | ||
| Camille | villager | | ||
| Thomas | villager | | ||
Then the game's current play should be stuttering-judge to choose-sign | ||
|
||
When the stuttering judge chooses his sign | ||
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 murdered by werewolves from eaten | ||
And the game's current play should be all to vote | ||
|
||
When all vote with the following votes and the stuttering judge does his sign | ||
| voter | target | | ||
| Olivia | Antoine | | ||
| Camille | Olivia | | ||
Then the game's current play should be all to vote because previous-votes-were-in-ties | ||
|
||
When nobody vote and the stuttering judge does his sign | ||
Then the game's current play should be all to vote because stuttering-judge-request | ||
|
||
When the player or group skips his turn | ||
Then the game's current play should be all to vote because stuttering-judge-request |
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.