Travis timing is all over the place

This commit is contained in:
Thomas Walpole 2018-07-05 17:14:36 -07:00
parent 7297144da4
commit 5d533830e2
3 changed files with 4 additions and 4 deletions

View File

@ -15,7 +15,7 @@ $(function() {
$(link).after('<input type="submit" value="New Here">');
$(link).after('<input type="text" id="new_field">');
$('#change').remove();
}, 500);
}, 1000);
return false;
});
$('#slow-click').click(function() {

View File

@ -46,7 +46,7 @@ Capybara::SpecHelper.spec '#assert_all_of_selectors' do
Capybara.using_wait_time(0.1) do
@session.visit('/with_js')
@session.click_link('Click me')
@session.assert_all_of_selectors(:css, "a#clickable", "a#has-been-clicked", '#drag', wait: 0.9)
@session.assert_all_of_selectors(:css, "a#clickable", "a#has-been-clicked", '#drag', wait: 1.5)
end
end
end

View File

@ -102,7 +102,7 @@ RSpec.shared_examples "Capybara::Session" do |session, mode|
fill_options: { clear: :backspace })
# click outside the field to trigger the change event
session.find(:css, 'body').click
expect(session.find(:css, '.change_event_triggered', match: :one)).to have_text 'some value'
expect(session.find(:css, '.change_event_triggered', match: :one, wait: 5)).to have_text 'some value'
end
it 'should trigger change when clearing field' do
@ -112,7 +112,7 @@ RSpec.shared_examples "Capybara::Session" do |session, mode|
fill_options: { clear: :backspace })
# click outside the field to trigger the change event
session.find(:css, 'body').click
expect(session).to have_selector(:css, '.change_event_triggered', match: :one)
expect(session).to have_selector(:css, '.change_event_triggered', match: :one, wait: 5)
end
it 'should trigger input event field_value.length times' do