Skip to content
New issue

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

674 html tests #676

Merged
merged 2 commits into from
Apr 14, 2023
Merged

674 html tests #676

merged 2 commits into from
Apr 14, 2023

Conversation

lcreid
Copy link
Contributor

@lcreid lcreid commented Apr 14, 2023

In working on a new implementation, it began to look like tests were passing when they shouldn't have passed. I made a branch off main and confirmed that we weren't testing the order of elements, which is significant in HTML.

Once that was fixed, it turned out that our code for handling some of the variations was also passing tests that it shouldn't have been passing. A couple of more changes fixed that.

Finally, three tests were failing because the expected strings were incorrect, but the other issues mentioned above were hiding that the tests should have failed.

In the process of fixing, we changed to use Nokogiri's HTML instead of XML. And to make it clear, the assertion helper was changed in all the test files.

Fixes: #674

@lcreid lcreid requested review from donv and thimo April 14, 2023 02:24
Copy link
Collaborator

@donv donv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

@lcreid lcreid merged commit 76c2542 into bootstrap-ruby:main Apr 14, 2023
@donv donv mentioned this pull request May 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Tests May Not Be Good Enough
2 participants