Skip to content

Commit

Permalink
Merge pull request #1820 from diowa/chore/improve-specs
Browse files Browse the repository at this point in the history
Remove timeout from specs
  • Loading branch information
tagliala authored Sep 28, 2024
2 parents 4261a83 + 158b053 commit 385a076
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions spec/system/itineraries_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,7 @@ def login_as_female
fill_in 'itinerary_end_address', with: 'Turin'
click_on 'get-route'

Timeout.timeout(5) do
sleep(0.1) until page.evaluate_script('$("#map-result-j #distance").text().trim()') != ''
end
expect(page).to have_css('#map-result-j:not(:empty)')

click_on 'wizard-next-step-button'

Expand Down

0 comments on commit 385a076

Please sign in to comment.