mirror of
https://github.com/teamcapybara/capybara.git
synced 2022-11-09 12:08:07 -05:00
Workaround issue with checking empty storage on Chrome 63
This commit is contained in:
parent
d9fca10413
commit
e5a21fba86
1 changed files with 8 additions and 4 deletions
|
@ -40,8 +40,10 @@ RSpec.describe "Capybara::Session with chrome" do
|
|||
@session.find(:css, '#set-storage').click
|
||||
@session.reset!
|
||||
@session.visit('/with_js')
|
||||
expect(@session.driver.browser.local_storage.keys).not_to be_empty
|
||||
expect(@session.driver.browser.session_storage.keys).not_to be_empty
|
||||
# expect(@session.driver.browser.local_storage.keys).not_to be_empty
|
||||
# expect(@session.driver.browser.session_storage.keys).not_to be_empty
|
||||
expect(@session.evaluate_script('Object.keys(localStorage)')).not_to be_empty
|
||||
expect(@session.evaluate_script('Object.keys(sessionStorage)')).not_to be_empty
|
||||
end
|
||||
|
||||
it "clears storage when set" do
|
||||
|
@ -50,8 +52,10 @@ RSpec.describe "Capybara::Session with chrome" do
|
|||
@session.find(:css, '#set-storage').click
|
||||
@session.reset!
|
||||
@session.visit('/with_js')
|
||||
expect(@session.driver.browser.local_storage.keys).to be_empty
|
||||
expect(@session.driver.browser.session_storage.keys).to be_empty
|
||||
# expect(@session.driver.browser.local_storage.keys).to be_empty
|
||||
# expect(@session.driver.browser.session_storage.keys).to be_empty
|
||||
expect(@session.evaluate_script('Object.keys(localStorage)')).to be_empty
|
||||
expect(@session.evaluate_script('Object.keys(sessionStorage)')).to be_empty
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue