From de1ffce7391a9e6adf07a8be60cd36bbc95ef2f3 Mon Sep 17 00:00:00 2001 From: Patricio Cano Date: Wed, 16 Sep 2015 18:03:48 -0500 Subject: Added Spinach tests and updated CHANGELOG --- features/project/project.feature | 6 ++++++ features/steps/project/project.rb | 14 ++++++++++++++ 2 files changed, 20 insertions(+) (limited to 'features') 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 -- cgit v1.2.1