diff options
| author | Andrew Tomaka <atomaka@gmail.com> | 2013-12-09 00:34:51 -0500 |
|---|---|---|
| committer | Andrew Tomaka <atomaka@gmail.com> | 2013-12-18 17:43:45 -0500 |
| commit | 0760ba3efb7566b9f56bb066f4b15ba8ea34e1e7 (patch) | |
| tree | 90188fdd35e78469275a6f6084b33dce7495d841 /features | |
| parent | 566b49624a230728a3a873ee1937f4b8d30ff8f5 (diff) | |
| download | gitlab-ce-0760ba3efb7566b9f56bb066f4b15ba8ea34e1e7.tar.gz | |
Customization and previewing of broadcast messages
Diffstat (limited to 'features')
| -rw-r--r-- | features/admin/broadcast_messages.feature | 7 | ||||
| -rw-r--r-- | features/steps/admin/admin_broadcast_messages.rb | 14 |
2 files changed, 21 insertions, 0 deletions
diff --git a/features/admin/broadcast_messages.feature b/features/admin/broadcast_messages.feature index 0294b51a7c5..5f16120b7cc 100644 --- a/features/admin/broadcast_messages.feature +++ b/features/admin/broadcast_messages.feature @@ -11,3 +11,10 @@ Feature: Admin Broadcast Messages 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 diff --git a/features/steps/admin/admin_broadcast_messages.rb b/features/steps/admin/admin_broadcast_messages.rb index 4dfaac06ae4..a35fa34a3a2 100644 --- a/features/steps/admin/admin_broadcast_messages.rb +++ b/features/steps/admin/admin_broadcast_messages.rb @@ -24,4 +24,18 @@ class Spinach::Features::AdminBroadcastMessages < Spinach::FeatureSteps step 'I should see newly created broadcast message' do page.should have_content 'Application update from 4:00 CST to 5:00 CST' end + + step 'submit form with new customized broadcast message' do + fill_in 'broadcast_message_message', with: 'Application update from 4:00 CST to 5:00 CST' + click_link "Customize colors" + fill_in 'broadcast_message_color', with: '#f2dede' + fill_in 'broadcast_message_font', with: '#b94a48' + select '2018', from: "broadcast_message_ends_at_1i" + click_button "Add broadcast message" + end + + step 'I should see a customized broadcast message' do + page.should have_content 'Application update from 4:00 CST to 5:00 CST' + page.should have_selector %(div[style="background-color:#f2dede;color:#b94a48"]) + end end |
