-
-
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): cupid acceptance tests
- Loading branch information
1 parent
76adaa3
commit 9dd415d
Showing
1 changed file
with
39 additions
and
0 deletions.
There are no files selected for viewing
39 changes: 39 additions & 0 deletions
39
tests/acceptance/features/game/features/role/cupid.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,39 @@ | ||
Feature: 馃挊 Cupid role | ||
|
||
Scenario: 馃挊 Cupid makes two people fall in love and they die if one of them dies | ||
|
||
Given a created game with options described in file no-sheriff-options.json and with the following players | ||
| name | role | | ||
| Antoine | cupid | | ||
| Olivia | werewolf | | ||
| JB | villager | | ||
| Thomas | idiot | | ||
|
||
When the cupid shoots an arrow at the player named JB and the player named Thomas | ||
Then 2 of the following players should have the in-love from cupid attribute | ||
| name | | ||
| JB | | ||
| Thomas | | ||
And the game's current play should be lovers to meet-each-other | ||
And the game's current play should be played by the following players | ||
| name | | ||
| JB | | ||
| Thomas | | ||
|
||
When the player or group skips his turn | ||
Then the game's current play should be werewolves to eat | ||
And the game's current play should be played by the following players | ||
| name | | ||
| Olivia | | ||
|
||
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 all vote with the following votes | ||
| source | target | | ||
| Olivia | JB | | ||
| Thomas | JB | | ||
Then the player named JB should be murdered by all from vote | ||
And the player named Thomas should be murdered by cupid from broken-heart | ||
And the game's status should be over |