From 369a6e6bcb3ced9a9363e983fb703008fc12c4d6 Mon Sep 17 00:00:00 2001 From: David Runger Date: Sun, 25 Aug 2024 22:49:41 -0500 Subject: [PATCH] Ignore favicon requests in a couple more specs --- spec/features/driver_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/features/driver_spec.rb b/spec/features/driver_spec.rb index 7473d01..89182a1 100644 --- a/spec/features/driver_spec.rb +++ b/spec/features/driver_spec.rb @@ -720,7 +720,7 @@ def create_screenshot(file, *args) it "captures responses" do @session.visit("/cuprite/with_js") - request = @driver.network_traffic.last + request = non_favicon_exchanges(@driver.network_traffic).last expect(request.response.status).to eq(200) end @@ -753,7 +753,7 @@ def create_screenshot(file, *args) it "gets cleared when being cleared" do @session.visit("/cuprite/with_js") - expect(@driver.network_traffic.length).to eq(4) + expect(non_favicon_exchanges(@driver.network_traffic).length).to eq(4) @driver.clear_network_traffic