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

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