Skip to content

Commit

Permalink
Move to driver spec
Browse files Browse the repository at this point in the history
  • Loading branch information
twalpole committed Jun 11, 2019
1 parent 736c364 commit 2b62366
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 24 deletions.
12 changes: 0 additions & 12 deletions spec/selenium_spec_chrome.rb
Expand Up @@ -137,16 +137,4 @@ module TestSessions
end.to raise_error(NotImplementedError, /Chromedriver 75\+ defaults to W3C mode/)
end
end

describe 'freeze' do
it 'pauses a page' do
session.visit('/with_js')
session.find(:css, '#clickable').click
session.driver.freeze_page
sleep 2 # Time needs to be longer than click action delay
expect(session).not_to have_css('#has-been-clicked')
session.driver.thaw_page
expect(session).to have_css('#has-been-clicked')
end
end
end
12 changes: 0 additions & 12 deletions spec/selenium_spec_chrome_remote.rb
Expand Up @@ -80,16 +80,4 @@ module TestSessions
it 'is considered to be chrome' do
expect(session.driver.browser.browser).to eq :chrome
end

describe 'freeze' do
it 'pauses a page' do
session.visit('/with_js')
session.find(:css, '#clickable').click
session.driver.freeze_page
sleep 2 # Time needs to be longer than click action delay
expect(session).not_to have_css('#has-been-clicked')
session.driver.thaw_page
expect(session).to have_css('#has-been-clicked')
end
end
end

0 comments on commit 2b62366

Please sign in to comment.