diff --git a/spec/selenium_spec_safari.rb b/spec/selenium_spec_safari.rb index 4937e9594..9950bcfba 100644 --- a/spec/selenium_spec_safari.rb +++ b/spec/selenium_spec_safari.rb @@ -81,13 +81,9 @@ module TestSessions pending "safaridriver doesn't generate double click with key modifiers" when /when w3c_click_offset is true should offset/ pending "w3c_click_offset is not currently supported with safaridriver" - when 'Capybara::Session selenium_safari #fill_in on a pre-populated textfield with a reformatting onchange should trigger change when clearing field' - pending "safardriver clear doesn't generate change event" when 'Capybara::Session selenium_safari #go_back should fetch a response from the driver from the previous page', 'Capybara::Session selenium_safari #go_forward should fetch a response from the driver from the previous page' skip 'safaridriver loses the ability to find elements in the document after `go_back`' - when /drag_to.*HTML5/ - pending "Safari doesn't support" end end @@ -137,7 +133,6 @@ module TestSessions end it 'should fill in a date input with a String' do - pending "Safari doesn't support date inputs" session.fill_in('form_date', with: '06/19/1983') session.click_button('awesome') expect(Date.parse(extract_results(session)['date'])).to eq datetime.to_date diff --git a/spec/shared_selenium_session.rb b/spec/shared_selenium_session.rb index 7ba6db977..627ce956a 100644 --- a/spec/shared_selenium_session.rb +++ b/spec/shared_selenium_session.rb @@ -74,7 +74,6 @@ describe '#fill_in_with empty string and no options' do it 'should trigger change when clearing a field' do - pending "safaridriver doesn't trigger change for clear" if safari?(session) session.visit('/with_js') session.fill_in('with_change_event', with: '') # click outside the field to trigger the change event @@ -188,14 +187,12 @@ it 'should generate standard events on changing value' do pending "IE 11 doesn't support date input type" if ie?(session) - pending "Safari doesn't support date input type" if safari?(session) session.fill_in('form_date', with: Date.today) expect(session.evaluate_script('window.capybara_formDateFiredEvents')).to eq %w[focus input change] end it 'should not generate input and change events if the value is not changed' do pending "IE 11 doesn't support date input type" if ie?(session) - pending "Safari doesn't support date input type" if safari?(session) session.fill_in('form_date', with: Date.today) session.fill_in('form_date', with: Date.today) # Chrome adds an extra focus for some reason - ok for now