mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-09 04:36:11 +10:00
Test changing notification settings per project fron notificaitons page
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
This commit is contained in:
@@ -7,3 +7,9 @@ Feature: Profile Notifications
|
||||
Scenario: I visit notifications tab
|
||||
When I visit profile notifications page
|
||||
Then I should see global notifications settings
|
||||
|
||||
@javascript
|
||||
Scenario: I edit Project Notifications
|
||||
Given I visit profile notifications page
|
||||
When I select Mention setting from dropdown
|
||||
Then I should see Notification saved message
|
||||
|
||||
@@ -9,4 +9,14 @@ class Spinach::Features::ProfileNotifications < Spinach::FeatureSteps
|
||||
step 'I should see global notifications settings' do
|
||||
expect(page).to have_content "Notifications"
|
||||
end
|
||||
|
||||
step 'I select Mention setting from dropdown' do
|
||||
select 'mention', from: 'notification_setting_level'
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user