Skip to content

Commit

Permalink
Ignore favicon requests in a couple more specs
Browse files Browse the repository at this point in the history
  • Loading branch information
davidrunger committed Aug 26, 2024
1 parent c0a8616 commit 369a6e6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/features/driver_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit 369a6e6

Please sign in to comment.