summaryrefslogtreecommitdiff
path: root/features/steps/profile/notifications.rb
blob: 979f4692d5a62d0d16248a7799c029c21285c612 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
class Spinach::Features::ProfileNotifications < Spinach::FeatureSteps
  include SharedAuthentication
  include SharedProject

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

  step 'I should see global notifications settings' do
    expect(page).to have_content "Notifications"
  end

  step 'I select Mention setting from dropdown' do
    first(:link, "On mention").trigger('click')
  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