From 8086b2bd2ecb0ff647da766c436eda47b7434599 Mon Sep 17 00:00:00 2001 From: Robert Speicher Date: Thu, 31 Dec 2015 16:04:07 -0500 Subject: Simplify BroadcastMessage factory Also make the feature tests less brittle. --- features/admin/broadcast_messages.feature | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'features/admin') diff --git a/features/admin/broadcast_messages.feature b/features/admin/broadcast_messages.feature index b2c3112320a..98d894a4fb6 100644 --- a/features/admin/broadcast_messages.feature +++ b/features/admin/broadcast_messages.feature @@ -6,7 +6,7 @@ Feature: Admin Broadcast Messages And I visit admin messages page Scenario: See broadcast messages list - Then I should be all broadcast messages + Then I should see all broadcast messages Scenario: Create a broadcast message When submit form with new broadcast message -- cgit v1.2.1 From 540ae3c3658d051f852b2c10fa61c557521196e1 Mon Sep 17 00:00:00 2001 From: Robert Speicher Date: Thu, 31 Dec 2015 17:22:40 -0500 Subject: Update Broadcast Message features - Removes redundant "Create a broadcast message" scenario that was entirely covered by the "Create a customized broadcast message" scenario. - Adds "Edit an existing broadcast message" scenario - Adds "Remove an existing broadcast message" scenario --- features/admin/broadcast_messages.feature | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) (limited to 'features/admin') diff --git a/features/admin/broadcast_messages.feature b/features/admin/broadcast_messages.feature index 98d894a4fb6..fd3bac77f86 100644 --- a/features/admin/broadcast_messages.feature +++ b/features/admin/broadcast_messages.feature @@ -2,20 +2,26 @@ Feature: Admin Broadcast Messages Background: Given I sign in as an admin - And application already has admin messages + And application already has a broadcast message And I visit admin messages page Scenario: See broadcast messages list Then I should see all broadcast messages - Scenario: Create a broadcast message - When submit form with new broadcast message - Then I should be redirected to admin messages page - And I should see newly created broadcast message - 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 + + 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 -- cgit v1.2.1