0
0
Fork 0

Use response.parsed_body for html response checks (#31750)

This commit is contained in:
Matt Jankowski 2024-09-04 13:29:05 -04:00 committed by GitHub
parent fe04291af4
commit e1b5f3fc6f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 12 additions and 10 deletions

View file

@ -342,7 +342,7 @@ RSpec.describe Auth::RegistrationsController do
end
def username_error_text
Nokogiri::Slop(response.body).css('.user_account_username .error').text
response.parsed_body.css('.user_account_username .error').text
end
end