As a Admin
I need to be able to approve/reject events
So that users can see approved events information
Details and Assumptions
Users and guests need to be able to see events that are posted on the site. The admin role must approve the post for these events to be visible to the public.
Without approval, there is a chance for malicious(or unrelated) events to appear.
Acceptance Criteria
Scenario: Events are approved
Given I am a logged-in admin user
And I see there are events to approve
And I click the "events to approve/reject" button
And I am redirected to the Post Management page
And I see all events that are waiting for approval with their details (title, date, contact information, flyer)
When I approve events by clicking the "approve" checkbox on each event
And I click the "approve these events" button
And the site will be refreshed
Then the events disappear
And a message saying "event(s) approved" will be shown
And users who submitted the approved events will be notified
Scenario: Events are rejected
Given I am a logged-in admin user
And I see there are events to approve
And I click the "events to approve/reject" button
And I am redirected to the Post Management page
And I see all events that are waiting for approval with their details (title, date, contact information, flyer)
When I reject events by clicking the "reject" checkbox on each event
And I provide a reason for rejection
And I click the "reject these events" button
And the site will be refreshed
Then the events disappear
And a message saying "event(s) rejected" will be shown
And users who submitted the rejected events will be notified with the reason
Scenario: No events to approve
Given I am a logged-in admin user
When I click the "events to approve/reject" button
And I am redirected to the Post Management page
Then I should see a message saying "No events to approve at this time."
As a Admin I need to be able to approve/reject events So that users can see approved events information
Details and Assumptions
Acceptance Criteria