Skip to content

Instantly share code, notes, and snippets.

@amicojeko
Last active February 3, 2022 13:22
Show Gist options
  • Save amicojeko/c6f68340de98beaa370a9fe8dc4fc502 to your computer and use it in GitHub Desktop.
Save amicojeko/c6f68340de98beaa370a9fe8dc4fc502 to your computer and use it in GitHub Desktop.
waits for the turbo progress bar to show and disappear
def wait_for_turbo
has_css?('.turbo-progress-bar', visible: true)
has_no_css?('.turbo-progress-bar')
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment