assertEqualHTML() in WordPress: Kill Your Brittle HTML Tests
WordPress 6.9 added assertEqualHTML(), which removes a whole category of brittle test failures caused by formatting-only HTML differences. I reviewed the implementation and mapped out concrete migration patterns for plugin and theme test suites.
If your test suite has ever failed because of a whitespace difference in rendered HTML, this is for you.
