I sometimes find myself having to test attribute values and would like to see something in Test::Mojo that lets you pass a selector, attrname, and expected value. I've been using $t->tap(sub{TEST(shift->tx->res->dom->at(SELECTOR)->attr(ATTR), EXPECTED, DESCR)}) which works fine, but is a tad verbose.
Is there a better/lazier way to do this?
If not, is there any interest in adding attribute testing as a feature? E.g. new methods: attr_is, attr_isnt, attr_like, attr_unlike?