-
Notifications
You must be signed in to change notification settings - Fork 7.6k
FindReplace tests fail when run as part of the unit test suite #5094
Comments
cc @njx I found that the test The reason it was never removed from the DOM is because I'm not sure how these tests are passing on the build machine at all. That's just weird. Anyhow, just dropping in |
It's weird because I haven't seen that test fail when running the whole suite. But the cause you mentioned makes sense. Assigning to me. |
Ah, I can see some failures if I run every test (not just the ones in the "Unit" list), although I only see 3. I don't understand why it doesn't always fail. |
Aha! It turns out that (1) (As an aside, it seems like our focus event in Brackets doesn't have the transition, so we get "lucky" that we don't accidentally respond to a transitionEnd event. The lesson is probably that we should always be checking the target of a transitionEnd to make sure it's the thing we think is transitioning.) Haven't figured out the best way to fix this yet. We've had at least one other case where not having the "real" CSS when running tests has bitten us (in that case, it was that we had a class where Bootstrap set it to display: block when we set it to display: none). In general, in cases where CSS has real effects on the functionality that we test for (e.g. whether something is visible or not, or when functionality depends on a transition), we're susceptible to this issue. |
Adding to this sprint. |
Is the problem related to the undesired transitions after clicking "Yes" or "No" buttons? If so, then maybe fixing #5168 will also fix the bugs. |
No, it's an issue with any transition, not just those. |
Not sure when @dangoor will be back, so proactively closing this one. |
On my Mac, I see a consistent failure of 11 FindReplace unit tests only when the whole unit test suite is run. If FindReplace is run by itself, the tests all pass.
The text was updated successfully, but these errors were encountered: