Skip to content

Commit

Permalink
testing
Browse files Browse the repository at this point in the history
  • Loading branch information
mitchellhenke committed May 13, 2024
1 parent 014bce9 commit 60d7bf6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion spec/support/features/interaction_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ def click_spinner_button_and_wait(...)
click_on(...)
begin
expect(page).to have_no_css('lg-spinner-button.spinner-button--spinner-active', wait: 10)
rescue Selenium::WebDriver::Error::StaleElementReferenceError
rescue Selenium::WebDriver::Error::StaleElementReferenceError,
Selenium::WebDriver::Error::UnknownError
# A stale element error can occur when attempting to wait for the spinner to disappear if the
# context in which the button was clicked (e.g. a `within` block) itself disappears. This is
# fine, since if the ancestor disappears, it can be assumed that the button is gone too.
Expand Down

0 comments on commit 60d7bf6

Please sign in to comment.