Skip to content

Commit

Permalink
Update safari test expectations
Browse files Browse the repository at this point in the history
  • Loading branch information
twalpole committed Oct 24, 2021
1 parent 001a375 commit 9af7983
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
5 changes: 0 additions & 5 deletions spec/selenium_spec_safari.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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
Expand Down
3 changes: 0 additions & 3 deletions spec/shared_selenium_session.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 9af7983

Please sign in to comment.