Skip to content

Commit

Permalink
Fix UI test with updated Chromium or Selenium.
Browse files Browse the repository at this point in the history
  • Loading branch information
GUI committed Jan 22, 2024
1 parent d5f4b47 commit de21cf8
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions test/admin_ui/test_validations.rb
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,12 @@ def test_inline_client_side_validations_on_blur
refute_selector(".has-error")
refute_selector(".invalid-feedback")

id = find_field("E-mail")[:id]
page.execute_script("document.getElementById('#{id}').focus(); document.getElementById('#{id}').blur()")
field = find_field("E-mail")
field.click
refute_selector(".has-error")
refute_selector(".invalid-feedback")

field.send_keys :tab
assert_selector(".has-error", :count => 1)
assert_selector(".invalid-feedback", :count => 1)
end
Expand Down

0 comments on commit de21cf8

Please sign in to comment.