Flaky test(s) in GlOutsideDirective specs

It looks like at least one of the specs for GlOutsideDirective is flaky.

I am able to verify this locally (sometimes) on the following specs:

  • given an arg -> works with click
  • multiple instances on the same element -> calls only the inner-most instance
  • given a callback that throws -> still calls other listeners
  • given a callback that throws -> logs the error to the console

I suspect there's a race, perhaps for the click event to bubble up vs making assertions. This needs investigation.

Edited by Mark Florian