Use closest `.alert` for alert dismissal; closes #14306

Refs #14306

Also updates two alert unit tests which were using incredibly outdated markup. (`.alert-message` was v1, right?)

/cc @cvrebert @fat