You can use `assert_dom_equal` here. It's safer in that attribute ordering does not matter.