-
Notifications
You must be signed in to change notification settings - Fork 179
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
Fix animation options karma test #7069
Conversation
Size Change: +110 B (0%) Total Size: 1.66 MB ℹ️ View Unchanged
|
Looks like we already do the same in In other places we just ignore the errors (as most people seem to do) Also https://stackoverflow.com/questions/49384120/resizeobserver-loop-limit-exceeded#comment118281231_58701523 is worth reading. |
I think if anything is the outcome of last week's bummer of having to disable a bunch of tests it's this - we really should start documenting this better. |
I'll add some documentation! I saw the cypress fix, which is nice, but I'm not sure how to add an event handler for uncaught exceptions for jest/karma... I did some searching and I'm not sure if it runs on |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice, this works locally for me. Would be great if we could get a document of common 'gotchas' to track stuff like this
// TODO #6953 | ||
// eslint-disable-next-line jasmine/no-disabled-tests | ||
xit('plays the animation when a control in the panel is changed.', async function () { | ||
it('plays the animation when a control in the panel is changed.', async function () { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's another test right above this that I think you can unskip too!
abcb461
to
8baee02
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also works locally for me!
68fc6c0
to
1b853d8
Compare
… console errors when none selected
…to handle nulls (introduced from new timers)
a98e8fa
to
57eefac
Compare
Codecov Report
@@ Coverage Diff @@
## main #7069 +/- ##
===========================================
+ Coverage 65.96% 81.90% +15.93%
===========================================
Files 1129 1133 +4
Lines 17523 17554 +31
===========================================
+ Hits 11559 14377 +2818
+ Misses 5964 3177 -2787
Flags with carried forward coverage won't be shown. Click here to find out more.
|
Context
This PR re-enables a flaky test and introduces some fixes to help the test pass. The test was for checking that the animation plays after the effect chooser is changed. The other fixes are detailed in Relevant Technical Choices.
Summary
The error which was causing the test to fail reads as follows:
ResizeObserver loop limit exceeded thrown
This was due to a "benign error" with the ResizeObserver, some discussion can be found here in a github issue thread for the resize-observer and here-- in the stack overflow thread which details the chosen solution.
The error is intermittent. I ran the karma test suite 10 times on
main
and saw a failure once. In order to test I found where the resize observer was being instantiated when interacting with the effect chooser dropdown and running and added therequestAnimationFrame
there which prevents the error from occurring.In order to verify, I re-ran the same test suite 30 times and never saw the error locally.
Relevant Technical Choices
I noticed a couple other problems while I was replicating:
To-do
User-facing changes
This is a bug fix.
Testing Instructions
QA
UAT
Reviews
Does this PR have a security-related impact?
Does this PR change what data or activity we track or use?
Does this PR have a legal-related impact?
Checklist
Type: XYZ
label to the PRFixes #6953