Skip to content

Commit

Permalink
test(acceptance): little girl acceptance tests (#404)
Browse files Browse the repository at this point in the history
  • Loading branch information
antoinezanardi committed Aug 14, 2023
1 parent b82bf4b commit 1af6c96
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"roles": {
"littleGirl": {
"isProtectedByGuard": true
}
}
}
17 changes: 17 additions & 0 deletions tests/acceptance/features/game/features/role/little-girl.feature
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

0 comments on commit 1af6c96

Please sign in to comment.