From de1ffce7391a9e6adf07a8be60cd36bbc95ef2f3 Mon Sep 17 00:00:00 2001 From: Patricio Cano Date: Wed, 16 Sep 2015 18:03:48 -0500 Subject: [PATCH] Added Spinach tests and updated CHANGELOG --- CHANGELOG | 1 + features/project/project.feature | 6 ++++++ features/steps/project/project.rb | 14 ++++++++++++++ 3 files changed, 21 insertions(+) diff --git a/CHANGELOG b/CHANGELOG index 36ee3e69ab3..4e0e5d44be8 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -43,6 +43,7 @@ v 8.0.0 (unreleased) - Add support for Crowd - Global Labels that are available to all projects - Fix highlighting of deleted lines in diffs. + - Project notification level can be set on the project page itself v 7.14.1 - Improve abuse reports management from admin area 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