Skip to content

Commit

Permalink
Replace has_content with assert_text
Browse files Browse the repository at this point in the history
  • Loading branch information
colby-swandale committed Dec 4, 2024
1 parent 3b8e3df commit 3bd7db0
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test/system/webauthn_verification_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class WebAuthnVerificationTest < ApplicationSystemTestCase

Browser::Chrome.any_instance.stubs(:safari?).returns true

assert page.has_content?("Success!")
assert_text "Success!"
assert_current_path(successful_verification_webauthn_verification_path)

assert_link_is_expired
Expand All @@ -58,8 +58,8 @@ class WebAuthnVerificationTest < ApplicationSystemTestCase

assert redirect_to("http://localhost:#{@port}?code=#{@verification.otp}")
assert redirect_to(failed_verification_webauthn_verification_path)
assert page.has_content?("Failed to fetch")
assert page.has_content?("Please close this browser and try again.")
assert_text "Failed to fetch"
assert_text "Please close this browser and try again."
assert_link_is_expired
assert_failed_verification_not_found
end
Expand Down Expand Up @@ -91,8 +91,8 @@ class WebAuthnVerificationTest < ApplicationSystemTestCase
click_on "Authenticate"

assert redirect_to(failed_verification_webauthn_verification_path)
assert page.has_content?("Failed to fetch")
assert page.has_content?("Please close this browser and try again.")
assert_text "Failed to fetch"
assert_text "Please close this browser and try again."
assert_link_is_expired
assert_failed_verification_not_found
end
Expand Down

0 comments on commit 3bd7db0

Please sign in to comment.