-
-
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): little girl acceptance tests (#404)
- Loading branch information
1 parent
b82bf4b
commit 1af6c96
Showing
2 changed files
with
24 additions
and
0 deletions.
There are no files selected for viewing
7 changes: 7 additions & 0 deletions
7
tests/acceptance/features/game/data/little-girl-is-protected-by-guard-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": { | ||
"littleGirl": { | ||
"isProtectedByGuard": true | ||
} | ||
} | ||
} |
17 changes: 17 additions & 0 deletions
17
tests/acceptance/features/game/features/role/little-girl.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,17 @@ | ||
Feature: 馃懅 Little Girl role | ||
|
||
Scenario: 馃懅 Little Girl is protected by the guard with the right game option | ||
|
||
Given a created game with options described in files no-sheriff-option.json, little-girl-is-protected-by-guard-option.json and with the following players | ||
| name | role | | ||
| Antoine | werewolf | | ||
| Olivia | little-girl | | ||
| JB | guard | | ||
| Thomas | villager | | ||
|
||
When the guard protects the player named Olivia | ||
Then the player named Olivia should have the protected from guard attribute | ||
And 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 alive |