Commit c13d9c11 authored by Lukas Eipert's avatar Lukas Eipert

Fix the user notifications spec

parent f640aeaa
......@@ -18,7 +18,9 @@ RSpec.describe 'Projects > Show > User manages notifications', :js do
click_notifications_button
click_link 'On mention'
wait_for_requests
page.within('.notification-dropdown') do
expect(page).not_to have_css('.gl-spinner')
end
click_notifications_button
expect(find('.update-notification.is-active')).to have_content('On mention')
......@@ -30,7 +32,9 @@ RSpec.describe 'Projects > Show > User manages notifications', :js do
click_notifications_button
click_link 'Disabled'
wait_for_requests
page.within('.notification-dropdown') do
expect(page).not_to have_css('.gl-spinner')
end
expect(page).to have_css('.notifications-icon[data-testid="notifications-off-icon"]')
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment