Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Integration tests #105

Open
9 tasks
perennialAutodidact opened this issue Nov 8, 2024 · 0 comments
Open
9 tasks

Integration tests #105

perennialAutodidact opened this issue Nov 8, 2024 · 0 comments
Assignees
Labels
frontend Issue pertains to the frontend client gameplay - local Issue pertains to local gameplay on the frontend or backend setup form Issue pertains to the game setup form

Comments

@perennialAutodidact
Copy link
Owner

The app needs a few integration tests to ensure that the user experience is predictable from beginning to end.

This can be accomplished using longer, more complex tests on the App.jsx component.

The test should

  • Render the app without crashing
  • Fill out the form automatically, triggering and correcting validation errors on each of the form steps and ensuring that the values get entered in the form
  • Click the Play button
  • Ensure that the proper player names and initial scores get rendered in the scoreboard component and the proper number of tiles gets rendered in the gameboard
  • Click through the game, making sure non-matches are reset and matches are removed, adding points to the correct player
  • Verify that the game over screen renders both the "Player x wins!" and the "It's a tie" messages, depending on the outcome of the game
  • Verify that the play again button resets the tiles and begins the game again
  • Verify that the reset game button take the user back to the setup form
  • Anything else that might be required
@perennialAutodidact perennialAutodidact added frontend Issue pertains to the frontend client gameplay - local Issue pertains to local gameplay on the frontend or backend setup form Issue pertains to the game setup form labels Nov 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
frontend Issue pertains to the frontend client gameplay - local Issue pertains to local gameplay on the frontend or backend setup form Issue pertains to the game setup form
Projects
None yet
Development

No branches or pull requests

2 participants