- Given the user is on the "New Robot" page
- When the user fills in the robot details including:
Name Weight Date Constructed Color Body Type Abilities Robot1 500 2024-03-21 Red Slicer Laser Cutter (10), Heat Ray (8), Shield Generator (5) - And the user submits the form
- Then the robot should be successfully added to the system
- And the user should be redirected to the "Robot Details" page for the newly added robot
- And the details of the robot should match the entered information
- Given the user is on the "Robots" page
- When the page loads
- Then the user should see a list of existing robots
- And each robot in the list should display its:
- Name
- Weight
- Date Constructed
- Color
- Body Type
- Abilities (if any)
- Given the user is on the "Robot Details" page for a specific robot
- When the user clicks on the "Edit" button
- Then the user should be redirected to the "Edit Robot" page
- And the form should be pre-filled with the existing robot details
- When the user updates the robot's details
- And submits the form
- Then the changes should be saved successfully
- And the user should be redirected back to the "Robot Details" page for the edited robot
- And the details of the robot should match the updated information
- Given the user is on the "Robot Details" page for a specific robot
- When the user clicks on the "Delete" button
- Then a confirmation modal should appear
- When the user confirms the deletion
- Then the robot should be successfully removed from the system
- And the user should be redirected to the "Robots" page
- And the deleted robot should no longer appear in the list of robots
- Given the user is on the "Robots" page
- When the user clicks on a specific robot from the list
- Then the user should be redirected to the "Robot Details" page for that robot
- And all the details of the robot should be displayed, including:
- Name
- Weight
- Date Constructed
- Color
- Body Type
- Abilities (if any)
List of possible abilities