You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
e.isTrusted is false in tests (we are using Jest). This makes this.isSimulatedButtonClick(e); true, which makes Popover ignore the click when trying to close it. Maybe your own test runner makes "real" clicks?
The text was updated successfully, but these errors were encountered:
Hello, and thank you for the excellent library! I've found a problem that affects our tests. It's appeared recently and seems pretty straightforward.
Environment
"@blueprintjs/core": "^5.2.0",
"@blueprintjs/datetime": "^5.0.8",
"@blueprintjs/icons": "^5.1.5",
"@blueprintjs/popover2": "^2.0.8",
Steps to reproduce
Actual behavior
Popover doesn't close.
Expected behavior
Popover closes and asserting that its contents disappeard passes.
Possible solution
I think the reason is this fix: #6092 .
e.isTrusted
is false in tests (we are using Jest). This makesthis.isSimulatedButtonClick(e);
true, which makes Popover ignore the click when trying to close it. Maybe your own test runner makes "real" clicks?The text was updated successfully, but these errors were encountered: