diff options
| author | Stan Hu <stanhu@gmail.com> | 2015-03-23 05:51:38 -0700 |
|---|---|---|
| committer | Stan Hu <stanhu@gmail.com> | 2015-03-23 05:51:38 -0700 |
| commit | a3daead1b00c28a16684cf11970ebd6da27511e2 (patch) | |
| tree | 58798281668a824e1e810b4e65a4038cc2cc5a0d /features/steps | |
| parent | fb30039668f68834d9951746181201423fa8b269 (diff) | |
| download | gitlab-ce-a3daead1b00c28a16684cf11970ebd6da27511e2.tar.gz | |
Include missing events and fix save functionality in admin service template settings form
Closes #1275
Diffstat (limited to 'features/steps')
| -rw-r--r-- | features/steps/admin/settings.rb | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/features/steps/admin/settings.rb b/features/steps/admin/settings.rb index c2d0d2a3fa3..87d4e969ff5 100644 --- a/features/steps/admin/settings.rb +++ b/features/steps/admin/settings.rb @@ -15,4 +15,33 @@ class Spinach::Features::AdminSettings < Spinach::FeatureSteps current_application_settings.home_page_url.should == 'https://about.gitlab.com/' page.should have_content 'Application settings saved successfully' end + + step 'I click on "Service Templates"' do + click_link 'Service Templates' + end + + step 'I click on "Slack" service' do + click_link 'Slack' + end + + step 'I check all events and submit form' do + page.check('Active') + page.check('Push events') + page.check('Tag push events') + page.check('Comments') + page.check('Issues events') + page.check('Merge Request events') + fill_in 'Webhook', with: "http://localhost" + click_on 'Save' + end + + step 'I should see service template settings saved' do + page.should have_content 'Application settings saved successfully' + end + + step 'I should see all checkboxes checked' do + all('input[type=checkbox]').each do |checkbox| + checkbox.should be_checked + end + end end |
