[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

Rules

  1. R1 - the name of the game cannot be blank (empty or whitespaces)
  2. R2 - the creator name cannot be blank (empty or whitespaces)

Scenarios & Examples

  1. Happy case 1: The user creates a game successfully without changing its name
  2. Happy case 2: The user creates a game successfully with a different name
  3. Alt Flow 1: Clicking on reset resets the form fields
  4. Alt Flow 2: Clicking on cancel or outside the form saves the inputted values
  5. Error case 1: The game name is empty
  6. Error case 2: The creator name is empty
  7. Error case 3: An error occured on the server side

Code Design

high-level

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