1
0
Fork 0
mirror of https://github.com/teamcapybara/capybara.git synced 2022-11-09 12:08:07 -05:00

Fix test conditions

This commit is contained in:
Thomas Walpole 2019-06-03 22:37:49 -07:00
parent 674c073ab2
commit 43365cd932

View file

@ -311,7 +311,7 @@ RSpec.shared_examples 'Capybara::Session' do |session, mode|
pending "Selenium remote doesn't support transferring a directory" if remote?(session) pending "Selenium remote doesn't support transferring a directory" if remote?(session)
pending "Headless Chrome doesn't support directory upload - https://bugs.chromium.org/p/chromedriver/issues/detail?id=2521&q=directory%20upload&colspec=ID%20Status%20Pri%20Owner%20Summary" if chrome?(session) && ENV['HEADLESS'] pending "Headless Chrome doesn't support directory upload - https://bugs.chromium.org/p/chromedriver/issues/detail?id=2521&q=directory%20upload&colspec=ID%20Status%20Pri%20Owner%20Summary" if chrome?(session) && ENV['HEADLESS']
pending "IE doesn't support uploading a directory" if ie?(session) pending "IE doesn't support uploading a directory" if ie?(session)
pending 'Chrome/chromedriver 73 breaks this' if chrome?(session) && !chrome_lt?(73, session) pending 'Chrome/chromedriver 73 breaks this' if chrome?(session) && chrome_gte?(73, session) && chrome_lt?(75, session)
pending "Safari doesn't support uploading a directory" if safari?(session) pending "Safari doesn't support uploading a directory" if safari?(session)
# pending "Edge/msedgedriver doesn't support directory upload" if edge?(session) && edge_gte?(75, session) # pending "Edge/msedgedriver doesn't support directory upload" if edge?(session) && edge_gte?(75, session)