BigW Consortium Gitlab

notifications.rb 616 Bytes
Newer Older
1
class Spinach::Features::ProfileNotifications < Spinach::FeatureSteps
2 3 4 5 6 7 8 9
  include SharedAuthentication
  include SharedProject

  step 'I visit profile notifications page' do
    visit profile_notifications_path
  end

  step 'I should see global notifications settings' do
10
    expect(page).to have_content "Notifications"
11
  end
12 13 14 15 16 17 18 19 20 21

  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
22
end