diff options
author | Patricio Cano <suprnova32@gmail.com> | 2015-09-17 02:03:48 +0300 |
---|---|---|
committer | Patricio Cano <suprnova32@gmail.com> | 2015-09-17 02:03:48 +0300 |
commit | de1ffce7391a9e6adf07a8be60cd36bbc95ef2f3 (patch) | |
tree | 59fd5fb4792f2f91f8b0bfaa69de94be56ff8eae /features | |
parent | fa6df2228e7d8957db4b37a44b687c71aac52449 (diff) |
Added Spinach tests and updated CHANGELOG
Diffstat (limited to 'features')
-rw-r--r-- | features/project/project.feature | 6 | ||||
-rw-r--r-- | features/steps/project/project.rb | 14 |
2 files changed, 20 insertions, 0 deletions
diff --git a/features/project/project.feature b/features/project/project.feature index 089ffcba14a..b3fb0794547 100644 --- a/features/project/project.feature +++ b/features/project/project.feature @@ -74,3 +74,9 @@ Feature: Project Given I disable snippets in project When I visit project "Shop" page Then I should not see "Snippets" button + + @javascript + Scenario: I edit Project Notifications + Given I click notifications drop down button + When I choose Mention setting + Then I should see Notification saved message diff --git a/features/steps/project/project.rb b/features/steps/project/project.rb index 0404fd5e594..54c026395fc 100644 --- a/features/steps/project/project.rb +++ b/features/steps/project/project.rb @@ -130,4 +130,18 @@ class Spinach::Features::Project < Spinach::FeatureSteps step 'I should see back to group button' do expect(page).to have_content 'Back to Group' end + + step 'I click notifications drop down button' do + click_link 'Notifications' + end + + step 'I choose Mention setting' do + click_link 'Mention' + end + + step 'I should see Notification saved message' do + page.within '.flash-container' do + expect(page).to have_content 'Notification settings saved' + end + end end |