-
Notifications
You must be signed in to change notification settings - Fork 3.2k
chore: FIT-1001: fix flakey tests #8834
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Conversation
✅ Deploy Preview for label-studio-docs-new-theme canceled.
|
✅ Deploy Preview for heartex-docs canceled.
|
❌ Deploy Preview for label-studio-storybook failed. Why did it fail? →
|
❌ Deploy Preview for label-studio-playground failed. Why did it fail? →
|
Codecov Report✅ All modified and coverable lines are covered by tests.
Additional details and impacted files@@ Coverage Diff @@
## develop #8834 +/- ##
============================================
- Coverage 66.72% 56.51% -10.22%
============================================
Files 811 554 -257
Lines 63432 40207 -23225
Branches 10690 10761 +71
============================================
- Hits 42325 22721 -19604
+ Misses 21104 17482 -3622
- Partials 3 4 +1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
@yyassi-heartex Are the num of ticks premeditated in each instance? how would this affect performance? |
This pull request focuses on improving the reliability and determinism of end-to-end and integration tests across several test files by replacing arbitrary time-based waits (e.g.,
I.wait(1),cy.wait(500)) with more deterministic, animation-frame-based waits usingI.waitTicks. It also removes the.tag("@flakey")and.retry(3)markers from tests, signaling increased test stability. Additionally, some integration tests have been updated to ensure elements are interactable before proceeding, further reducing flakiness.Test Stability and Reliability Improvements
I.wait(1),cy.wait(500)) withI.waitTicks, which waits for a specific number of animation frames, making tests more deterministic and less prone to timing-related flakiness. This change was applied across audio region, paragraph-enhanced, video timeline, and sync audio test suites. [1] [2] [3] [4].tag("@flakey")and.retry(3)from all affected test scenarios, indicating that the tests are now considered stable and should not be retried automatically. [1] [2] [3] [4]Test Logic and Interaction Improvements
taxonomy-mig-per-item.cy.tsto ensure elements are fully rendered and interactable before attempting to interact with them, using visibility and enabled checks instead of arbitrary waits. This makes the tests more robust and less likely to fail due to rendering delays. [1] [2]Test Code Consistency
I.waitTicksand added comments to clarify the purpose of each wait, improving code readability and maintainability throughout the test suites. [1] [2] [3] [4] [5] [6] [7] [8]These changes collectively enhance the reliability, determinism, and maintainability of the automated test suite.