Fix number of new notifications

We were displaying the total number of notifications with a message "You
have N unread notifications", but were using the total number of
notifications instead of the unread ones.
This commit is contained in:
Javi Martín
2021-02-16 01:24:33 +01:00
parent 0839c5ea75
commit fb88e0b77c
3 changed files with 11 additions and 5 deletions

View File

@@ -198,7 +198,7 @@ describe "Proposal Notifications" do
login_as user1
visit root_path
find(".unread-notifications").click
click_link "You have a new notification"
expect(page).to have_css ".notification", count: 1
@@ -210,7 +210,7 @@ describe "Proposal Notifications" do
login_as user2
visit root_path
find(".unread-notifications").click
click_link "You have a new notification"
expect(page).to have_css ".notification", count: 1
@@ -303,7 +303,7 @@ describe "Proposal Notifications" do
login_as user
visit root_path
find(".unread-notifications").click
click_link "You have a new notification"
expect(page).to have_css ".notification", count: 1
expect(page).to have_content "This resource is not available anymore"