[test] Add an `assertions` mode to the axe regression harness (#48915)