Logo: Relish

  1. Sign in

Project: relish

Site announcements

In order to communicate to Relish users, administrators
need to be able to create, edit, and delete site announcements.

Scenarios
View existing site announcements
Given
I am signed in as an administrator
And
a site announcement with content "maintenance scheduled"
When
I go to the admin site announcements page
Then
I should see "maintenance scheduled"
A non-admin attempts to view site announcements
Given
I am signed in
When
I go to the admin site announcements page
Then
I should be on the home page
Create a site announcement successfully
Given
I am signed in as an administrator
And
I go to the admin site announcements page
And
fill in the new site announcement with "maintenance scheduled"
When
I press "Create Site Announcement"
Then
I should see "maintenance scheduled" in the site announcements list
And
should see "Site announcement created successfully."
When
I wait until all the jobs have run
And
go to the dashboard page
Then
I should see "maintenance scheduled"
Create an invalid site announcement
Given
I am signed in as an administrator
And
I go to the admin site announcements page
And
fill in the new site announcement with ""
When
I press "Create Site Announcement"
Then
I should see "Content can't be blank"
Delete a site announcement successfully
Given
I am signed in as an administrator
And
a site announcement with content "maintenance scheduled"
And
I wait until all the jobs have run
When
I go to the admin site announcements page
And
follow "Delete"
Then
I should see "Site announcement deleted successfully."
When
I go to the dashboard page
Then
I should not see "maintenance scheduled"

Last published almost 4 years ago by mattwynne.