2014-09-02 18:07:02 +05:30
|
|
|
@admin
|
|
|
|
Feature: Admin Broadcast Messages
|
|
|
|
Background:
|
|
|
|
Given I sign in as an admin
|
2016-01-19 16:12:03 +05:30
|
|
|
And application already has a broadcast message
|
2014-09-02 18:07:02 +05:30
|
|
|
And I visit admin messages page
|
|
|
|
|
|
|
|
Scenario: See broadcast messages list
|
2016-01-19 16:12:03 +05:30
|
|
|
Then I should see all broadcast messages
|
2014-09-02 18:07:02 +05:30
|
|
|
|
|
|
|
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
|
2016-01-19 16:12:03 +05:30
|
|
|
|
|
|
|
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
|