Skip to content

Commit

Permalink
Reduce integration spec error rate (#686, PR #693)
Browse files Browse the repository at this point in the history
  • Loading branch information
wvengen authored Oct 30, 2019
1 parent 7875eef commit ef61330
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions spec/integration/balancing_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@
end
within("#edit_order_article_#{oa.id}") do
find('#order_article_units_to_order').set(0)
sleep 0.2
sleep 0.25
find('input[type="submit"]').click
end
expect(page).to have_selector("#order_article_#{oa.id}")
Expand All @@ -134,7 +134,7 @@
within('#new_group_order_article') do
select user.ordergroup.name, :from => 'group_order_article_ordergroup_id'
find('#group_order_article_result').set(8)
sleep 0.2
sleep 0.25
find('input[type="submit"]').click
end
expect(page).to_not have_selector('form#new_group_order_article')
Expand Down Expand Up @@ -173,9 +173,8 @@
expect(page).to have_selector('form#new_order_article')
within('#new_order_article') do
find('#order_article_article_id').select(new_article.name)
sleep 0.1
sleep 0.25
find('input[type="submit"]').click
sleep 0.1
end
expect(page).to_not have_selector('form#new_order_article')
expect(page).to have_content(new_article.name)
Expand Down

0 comments on commit ef61330

Please sign in to comment.