Skip to content

Commit

Permalink
test(acceptance): cupid acceptance tests
Browse files Browse the repository at this point in the history
  • Loading branch information
antoinezanardi committed Aug 14, 2023
1 parent 76adaa3 commit 9dd415d
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions tests/acceptance/features/game/features/role/cupid.feature
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

0 comments on commit 9dd415d

Please sign in to comment.