Skip to content

Commit

Permalink
Correct reasons for pending tests
Browse files Browse the repository at this point in the history
  • Loading branch information
twalpole committed May 10, 2019
1 parent 59d33b2 commit 1702a6d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion spec/selenium_spec_safari.rb
Original file line number Diff line number Diff line change
Expand Up @@ -116,24 +116,26 @@ module TestSessions
let(:session) { TestSessions::Safari }

before do
skip 'Too many other things broken currently'
session.visit('/form')
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
end

it 'should fill in a time input with a String' do
# Safari doesn't support time inputs - so this is just a text input
session.fill_in('form_time', with: '06:30A')
session.click_button('awesome')
results = extract_results(session)['time']
expect(Time.parse(results).strftime('%r')).to eq datetime.strftime('%r')
end

it 'should fill in a datetime input with a String' do
pending "Safari doesn't support datetime inputs"
session.fill_in('form_datetime', with: "06/19/1983\t06:30A")
session.click_button('awesome')
expect(Time.parse(extract_results(session)['datetime'])).to eq datetime
Expand Down

0 comments on commit 1702a6d

Please sign in to comment.