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 Member/Admin I need to be able to submit an upcoming event for approval so that I can spread information about my event #2

Closed mmanning95 closed 4 days ago

mmanning95 commented 2 months ago

As a Member/Admin I need to be able to submit an upcoming event for approval So that I can spread information about my event

Details and Assumptions

Acceptance Criteria

Scenario: Successful submission
Given I am a  logged-in member
And I click the "create a post" button
And I am redirected to the Create Post page
When I submit the event name, flyer(optional), description(optional), website link(optional), and contact information
Then I should see a message saying the post has been successfully submitted
And I am redirected back to the homepage

Scenario: Unsuccessful submission due to missing information
Given I am a logged-in member
And I click the "create a post" button
And I am redirected to the Create Post page
When I submit relevant information but left the flyer empty
Then I should see a message saying "Please upload a flyer."
And I should remain on the submission page

Scenario: Unsuccessful submission due to invalid flyer format
Given I am a logged-in member
And I click the "create a post" button
And I am redirected to the Create Post page
When I submit relevant information but an invalid file type for the flyer
Then I should see a message saying "Invalid file format. Please upload a PDF or image file."
And I should remain on the submission page

Scenario: Admin submits an event
Given I am logged in as an admin
And I click the "create a post" button
And I am redirected to the Create Post page
When I submit the event name, flyer(optional), description(optional), website link(optional), and contact information
Then I should see a message saying the post has been successfully posted
And the event should be visible to all users