Skip to content

Commit

Permalink
Add a spec for Request#finished?
Browse files Browse the repository at this point in the history
  • Loading branch information
dkniffin committed Jul 31, 2020
1 parent c583c9d commit a7d79ae
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions spec/integration/driver_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -781,6 +781,14 @@ def create_screenshot(file, *args)

expect(@driver.network_traffic(:blocked).length).to eq(0)
end

it 'keeps track of whether network traffic is finished' do
@driver.clear_network_traffic
@session.visit('/apparition/with_js')
expect(@driver.network_traffic.last).not_to be_finished
sleep 1
expect(@driver.network_traffic.last).to be_finished
end
end

context 'memory cache clearing' do
Expand Down

0 comments on commit a7d79ae

Please sign in to comment.