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

Disable unsupported tests on IE

This commit is contained in:
Thomas Walpole 2019-05-20 13:18:34 -07:00
parent 3650c5bd77
commit bcbefe7acc
3 changed files with 9 additions and 0 deletions

View file

@ -242,6 +242,10 @@ Capybara::SpecHelper.spec 'node' do
expect(@session.find('//div[@id="hidden_attr"]')).not_to be_visible
expect(@session.find('//a[@id="hidden_attr_via_ancestor"]')).not_to be_visible
expect(@session.find('//input[@id="hidden_input"]')).not_to be_visible
end
it 'template elements should not be visible' do
Capybara.ignore_hidden_elements = false
expect(@session.find('//template')).not_to be_visible
end

View file

@ -112,6 +112,10 @@ Capybara::SpecHelper.run_specs TestSessions::SeleniumIE, 'selenium', capybara_sk
skip 'Hangs IE testing for unknown reason'
when /drag_to.*HTML5/
pending "IE doesn't support a DataTransfer constuctor"
when /template elements should not be visible/
skip "IE doesn't support template elements"
when /Element#drop/
pending "IE doesn't support DataTransfer constructor"
end
end

View file

@ -421,6 +421,7 @@ RSpec.shared_examples 'Capybara::Session' do |session, mode|
describe 'with react' do
context 'controlled components' do
it 'can set and clear a text field' do
skip "This test doesn't support older browsers" if ie?(session)
# session.visit 'https://reactjs.org/docs/forms.html'
# session.all(:css, 'h2#controlled-components ~ p a', text: 'Try it on CodePen')[0].click
# copied into local view