2014-06-04 16:55:27 -04:00
|
|
|
@admin
|
2013-11-12 11:56:48 -05:00
|
|
|
Feature: Admin Broadcast Messages
|
|
|
|
Background:
|
|
|
|
Given I sign in as an admin
|
2015-12-31 17:22:40 -05:00
|
|
|
And application already has a broadcast message
|
2013-11-12 11:56:48 -05:00
|
|
|
And I visit admin messages page
|
|
|
|
|
|
|
|
Scenario: See broadcast messages list
|
2015-12-31 16:04:07 -05:00
|
|
|
Then I should see all broadcast messages
|
2013-11-12 11:56:48 -05:00
|
|
|
|
2013-12-09 00:34:51 -05:00
|
|
|
Scenario: Create a customized broadcast message
|
|
|
|
When submit form with new customized broadcast message
|
|
|
|
Then I should be redirected to admin messages page
|
|
|
|
And I should see newly created broadcast message
|
|
|
|
Then I visit dashboard page
|
|
|
|
And I should see a customized broadcast message
|
2015-12-31 17:22:40 -05:00
|
|
|
|
|
|
|
Scenario: Edit an existing broadcast message
|
|
|
|
When I edit an existing broadcast message
|
|
|
|
And I change the broadcast message text
|
|
|
|
Then I should be redirected to admin messages page
|
|
|
|
And I should see the updated broadcast message
|
|
|
|
|
|
|
|
Scenario: Remove an existing broadcast message
|
|
|
|
When I remove an existing broadcast message
|
|
|
|
Then I should be redirected to admin messages page
|
|
|
|
And I should not see the removed broadcast message
|
2016-02-03 23:01:04 -05:00
|
|
|
|
|
|
|
@javascript
|
|
|
|
Scenario: Live preview a customized broadcast message
|
|
|
|
When I visit admin messages page
|
|
|
|
And I enter a broadcast message with Markdown
|
|
|
|
Then I should see a live preview of the rendered broadcast message
|