[FT‐001] Game Creation Dialog - mbimbij/trivia GitHub Wiki
Description
Refactor the creation of a new game, using a visually appealing form. The user can create a game with a player name that is different from his or her user name.
Visual Design
- High-Level Design Impacts - Miro
- Low-Level Design & Collaborations - Miro
- Low-Level Design - open dialog - PlantUml
Rules
- R1 - the name of the game cannot be blank (empty or whitespaces)
- R2 - the creator name cannot be blank (empty or whitespaces)
Scenarios & Examples
- Happy case 1: The user creates a game successfully without changing its name
- Happy case 2: The user creates a game successfully with a different name
- Alt Flow 1: Clicking on reset resets the form fields
- Alt Flow 2: Clicking on cancel or outside the form saves the inputted values
- Error case 1: The game name is empty
- Error case 2: The creator name is empty
- Error case 3: An error occured on the server side
Code Design
Tests
- Happy case 1
- Happy case 2
- Alt Flow 1
- Happy case - postcondition - successful game creation resets the form inputs
- Alt Flow 2 - case 1 - click on cancel save the inputs
- Alt Flow 2 - case 2 - click outside save the inputs
- Error Case 1
- Error Case 2
- Error Case 3