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
The admin needs full control of the website. They will need to be able to delete posts to keep the hub as updated as possible
An email will be sent to member if an event is deleted before its scheduled time.
Members will have the ability to delete events they have created.
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
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