Skip to content

Commit

Permalink
created test to check for no notifications message appearing
Browse files Browse the repository at this point in the history
  • Loading branch information
FireLemons committed Dec 9, 2022
1 parent 34c6a07 commit 30e9237
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions spec/requests/notifications_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,23 @@
let(:patch_note_2) { create(:patch_note, note: "(W!;Ros>cIWNKX}", patch_note_type: patch_note_type_b) }

context "when logged in as an admin" do
let(:admin) { create(:casa_admin) }

before do
sign_in admin
end
context "when there are no notifications or patch notes" do
it "shows the no notification message" do
get notifications_url

expect(response.body).to include("You currently don't have any notifications. Notifications are generated when someone requests follow-up on a case contact.")
end
end

context "when there are only patch notes" do
context "when there is no deploy date" do
end
end
end

context "when logged in as volunteer" do
Expand Down

0 comments on commit 30e9237

Please sign in to comment.