test(alert): fix wrong assertion test for close button

This test was passing anyway, even if there was a close attribute in the alert.
The right thing to test is button's visibility instead of existence.