We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
At the moment we don't have a way to detect malformed markup. See for example: #15433
Nokogiri in strict mode is probably all we need. (#15433 (comment))
Changing the subject to Nokogiri::HTML(last_response.body) { |config| config.strict } lets us then run a test later like
subject
Nokogiri::HTML(last_response.body) { |config| config.strict }
it "has no HTML errors" do subject.errors.must_be_empty end
subject.errors must be empty for all pages.
subject.errors
The text was updated successfully, but these errors were encountered:
octopusinvitro
No branches or pull requests
Problem
At the moment we don't have a way to detect malformed markup. See for example: #15433
Proposed Solution
Nokogiri in strict mode is probably all we need. (#15433 (comment))
Changing the
subject
toNokogiri::HTML(last_response.body) { |config| config.strict }
lets us then run a test later likeAcceptance Criteria
subject.errors
must be empty for all pages.The text was updated successfully, but these errors were encountered: