mmanning95 / ACME26WCV-Cpts421

Capstone project for Cpts 421 in conjunction with Whitman county's veteran service officer
0 stars 0 forks source link

As a admin I need to be able to delete past posts or posts no longer wanted so that the hub is as updated as possible #6

Open mmanning95 opened 1 week ago

mmanning95 commented 1 week ago

As a admin I need to be able to delete past posts or posts no longer wanted So that the hub is as updated as possible

Details and Assumptions

Acceptance Criteria


Scenario: Successful event deletion
Given I am a logged-in admin
When I click the "delete event" button
And I see a confirmation dialog
And I confirm the deletion
Then I will be redirected to the events list page 
And I will see a message saying the event has been deleted successfully

Scenario: Unsuccessful event deletion
Given I am a logged-in admin
When I click the "delete event" button
And I see a confirmation dialog
And I cancel the deletion
Then I will remain on the event's page
And I will see a message saying the deletion has been canceled

Scenario: Successful event deletion for user
Given I am a logged-in member
When I click the "delete event" button on an event I posted
And I see a confirmation dialog
And I confirm the deletion
Then I will be redirected to the events list page 
And I will see a message saying the event has been deleted successfully