summaryrefslogtreecommitdiff
path: root/features
diff options
context:
space:
mode:
authorSullivan SENECHAL <soullivaneuh@gmail.com>2014-10-01 02:48:41 +0200
committerSullivan SENECHAL <soullivaneuh@gmail.com>2014-10-03 13:54:37 +0200
commitd1fa3b336d1d3e3c1f9a10ca007e3d1193e5e205 (patch)
tree4ab193d600aa60182b1f0ff01bfd116b640b274f /features
parent43217dd5ddcb7557ea0c7300c6a02253f1b99d7d (diff)
downloadgitlab-ce-d1fa3b336d1d3e3c1f9a10ca007e3d1193e5e205.tar.gz
Add Pushover service integration
That introduce select field type for services options.
Diffstat (limited to 'features')
-rw-r--r--features/project/service.feature6
-rw-r--r--features/steps/project/services.rb23
2 files changed, 29 insertions, 0 deletions
diff --git a/features/project/service.feature b/features/project/service.feature
index a5af065c9e7..af88eaefa8f 100644
--- a/features/project/service.feature
+++ b/features/project/service.feature
@@ -43,6 +43,12 @@ Feature: Project Services
And I fill Slack settings
Then I should see Slack service settings saved
+ Scenario: Activate Pushover service
+ When I visit project "Shop" services page
+ And I click Pushover service link
+ And I fill Pushover settings
+ Then I should see Pushover service settings saved
+
Scenario: Activate email on push service
When I visit project "Shop" services page
And I click email on push service link
diff --git a/features/steps/project/services.rb b/features/steps/project/services.rb
index b56b413eac8..d816fcafbaa 100644
--- a/features/steps/project/services.rb
+++ b/features/steps/project/services.rb
@@ -13,6 +13,7 @@ class Spinach::Features::ProjectServices < Spinach::FeatureSteps
page.should have_content 'Hipchat'
page.should have_content 'GitLab CI'
page.should have_content 'Assembla'
+ page.should have_content 'Pushover'
end
step 'I click gitlab-ci service link' do
@@ -118,4 +119,26 @@ class Spinach::Features::ProjectServices < Spinach::FeatureSteps
find_field('Room').value.should == '#gitlab'
find_field('Token').value.should == 'verySecret'
end
+
+ step 'I click Pushover service link' do
+ click_link 'Pushover'
+ end
+
+ step 'I fill Pushover settings' do
+ check 'Active'
+ fill_in 'Api key', with: 'verySecret'
+ fill_in 'User key', with: 'verySecret'
+ fill_in 'Device', with: 'myDevice'
+ select 'High Priority', from: 'Priority'
+ select 'Bike', from: 'Sound'
+ click_button 'Save'
+ end
+
+ step 'I should see Pushover service settings saved' do
+ find_field('Api key').value.should == 'verySecret'
+ find_field('User key').value.should == 'verySecret'
+ find_field('Device').value.should == 'myDevice'
+ find_field('Priority').find('option[selected]').value.should == '1'
+ find_field('Sound').find('option[selected]').value.should == 'bike'
+ end
end