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 approve/reject events so that users can see approved events information #3

Open mmanning95 opened 1 week ago

mmanning95 commented 1 week ago

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


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."