chore(e2e-tests): add waitForAnimations for document results #7210
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Aiming to fix the flake where the values from the documents list aren't what we're expecting.
Example of that flake: https://spruce.mongodb.com/task/10gen_compass_main_test_packaged_app_rhel_test_packaged_app_2_749435b5184979e826c7f16910f1d57ef47202b9_25_08_18_14_12_44/tests?execution=0&sorts=STATUS%3AASC
Here's the line that has been flaking:
compass/packages/compass-e2e-tests/tests/in-use-encryption.test.ts
Line 658 in 2f4577b
There are 2 flakes with this line and the line above it that have been happening.
Looking at the
waitForResultimplementation inrun-findit's checking that thegetQueryIdgets updated, not actually the documents list updating in the dom. I'm thinking waiting for animations here will ensure that any virtualization or rendering that happens at a slight delay after the results are in will be taken into account.