1 |
Test if the game loads with 30 cards in total and each player has 15 cards. |
The game should load with a total of 30 cards, with each player starting with 15 cards. |
30 cards are loaded and each player has 15 cards. |
Pass |
2 |
Test if the player loses a turn, they lose a card and the other player gains it. |
When a player loses a turn, they should lose a card and the other player should gain it. |
Player 1 loses a turn and a card, while Player 2 gains the card. |
Pass |
3 |
Test if the game displays a message when a player has 0 cards left. |
When a player has 0 cards left, the game should display a message indicating that they have lost/won. |
Player 1 has 0 cards left and a message is displayed indicating they have lost/won |
Pass |
4 |
Test if the game modes buttons work. |
The game modes buttons should switch between single player, multiplayer, and simulation play modes. |
Clicking on each button switches the game mode accordingly. |
Pass |
5 |
Test if the game modes buttons disable during game. |
The game modes buttons should disable when a game is being played to avoid confusion. |
The buttons except reset are disabled. |
Pass |
6 |
Test if the stat buttons are showing and hiding. |
The stat buttons should be hidden unless if it is the player's turn. |
Stat buttons are hidden unless and visible during the player's turn. |
Pass |
7 |
Test if the game ends when one player has all the cards. |
When one player has all the cards, the game should end and a message should be displayed indicating the winner. |
Player 1 has all the cards and a message is displayed indicating they have won. |
Pass |
8 |
Test if the game allows for tie-breakers. |
If a round ends in a tie, a tie-breaker should be played to determine the winner. |
A round ends in a tie and a tie-breaker round is played. |
Fail |
9 |
Test if the game uses the correct card stats. |
When a player selects a card, the game should use the card's stats. |
Player 1 selects a card and the game uses the correct card's stats |
Pass |
10 |
Test if the game allows for players to select a stat. |
When a player selects a stat, the game should compare the selected stat of each player's card, and the player with the highest stat wins the round. |
Player 1 selects a stat and their card has a higher value than Player 2's card, so they win the round. |
Pass |
11 |
Test if the game allows for players to select a stat. |
When a player selects a stat, the game should compare the selected stat of each player's card, and the player with the highest stat wins the round. |
Player 1 selects a stat and their card has a higher value than Player 2's card, so they win the round. |
Pass |
12 |
Test if the data about the game is being stored in the window local storage. |
All the data recorded during the game should be stored. |
Data is stored. |
Pass |
13 |
Test if the analysis appears after each game. In addition the pie chart should be reset after each game. |
The game analysis should appear after each game and the chart should have been cleaned from the previous game data. |
The analysis appears and the chart is cleaned from the previous game data. |
Pass |