2014-09-22 14:30:25 +00:00
|
|
|
class Spinach::Features::ProfileNotifications < Spinach::FeatureSteps
|
2013-06-26 17:54:51 +00:00
|
|
|
include SharedAuthentication
|
|
|
|
include SharedProject
|
|
|
|
|
|
|
|
step 'I visit profile notifications page' do
|
|
|
|
visit profile_notifications_path
|
|
|
|
end
|
|
|
|
|
|
|
|
step 'I should see global notifications settings' do
|
2015-06-12 04:44:13 +00:00
|
|
|
expect(page).to have_content "Notifications"
|
2013-06-26 17:54:51 +00:00
|
|
|
end
|
2016-03-30 08:32:19 +00:00
|
|
|
|
|
|
|
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
|
2013-06-26 17:54:51 +00:00
|
|
|
end
|