gitlab-org--gitlab-foss/features/steps/profile/notifications.rb
2016-06-21 11:20:06 +01:00

20 lines
542 B
Ruby

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
expect(page).to have_content 'On mention'
end
end