          // Hide
            setTimeout(function () {
              // Click directly on alert box
              var el = alert.$$('.alert');
              el.click();
            }, 5);

            alert.addEventListener('close', function (evt) {
              // Ensure transition complete with setTimeout
              setTimeout(function () {
                var el = alert.$$('.alert');
                assert.equal(
                  getComputedStyle(el).display,
                  'none',
              