From c4049efa4adee9f31015f1a44b35663b2a5b95e1 Mon Sep 17 00:00:00 2001 From: Bertocq Date: Wed, 28 Mar 2018 09:19:58 +0200 Subject: [PATCH] Fix notification expectations for read ones --- spec/features/notifications_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/features/notifications_spec.rb b/spec/features/notifications_spec.rb index 5b979d5ec..58aebb472 100644 --- a/spec/features/notifications_spec.rb +++ b/spec/features/notifications_spec.rb @@ -15,7 +15,7 @@ feature "Notifications" do unread = create(:notification, user: user) click_notifications_icon - click_link "All notifications" + click_link "Read" expect(page).to have_css(".notification", count: 2) expect(page).to have_content(read1.notifiable_title) @@ -85,7 +85,7 @@ feature "Notifications" do notification2 = create(:notification, user: user) click_notifications_icon - click_link "All notifications" + click_link "Read" expect(page).to have_css(".notification", count: 1) within("#notification_#{notification1.id}") do