From a495807739250f83eb9621faea6fc2433e8aade3 Mon Sep 17 00:00:00 2001 From: Brenda Wallace Date: Wed, 12 Jun 2019 14:29:49 +1200 Subject: [PATCH] Percy snapshots for notifications --- spec/features/notifications_spec.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/spec/features/notifications_spec.rb b/spec/features/notifications_spec.rb index 347d27627..c184bfb46 100644 --- a/spec/features/notifications_spec.rb +++ b/spec/features/notifications_spec.rb @@ -16,6 +16,7 @@ describe "Notifications", :js do before do login_as recipient visit notification_path(notification) + Percy.snapshot(page, name: "notifications#show") end it "Replying to the notification" do @@ -23,6 +24,7 @@ describe "Notifications", :js do expect(page).to have_content "Notification body" fill_in 'notification_body', with: "Response body" + Percy.snapshot(page, name: "notifications#new") click_button "Send" expect(page).to have_content "Message was successfully sent" @@ -34,6 +36,7 @@ describe "Notifications", :js do FactoryBot.create_list :notification, 34, recipient: recipient login_as recipient visit notifications_path + Percy.snapshot(page, name: "notifications#index") end it 'has page navigation' do