day-cohort-70 / rare-api-superawesometeamname

rare-api-superawesometeamname created by GitHub Classroom
0 stars 0 forks source link

Delete a Category #32

Closed Valerie-Freeman closed 3 months ago

Valerie-Freeman commented 3 months ago

As an admin I would like to be able to delete a Category so that I can remove any that are not needed.

Given an admin is vising the list of Categories
When they select the Delete option
Then they should be prompted to confirm the deletion

Given the admin wishes to confirm the delete
When they the select the option to confirm
Then the Category should be removed from the system
And the admin should be directed back to the Category list

Given the admin decides not to confirm the delete
When they the select the option to reject confirmation
Then the Category should NOT be removed from the system
And the admin should be directed back to the Category list

NOTE: For the time being it is acceptable to treat all users as admin users. There is a future story about enforcing user permissions.