Flaky Frontend tests failing every time while pushing changes
See original GitHub issueThis error occurred recently locally on my machine when running the frontend tests
Chrome Headless 87.0.4280.88 (Mac OS 11.0.0) Upgraded component should create the upgraded component FAILED
Failed: Uncaught (in promise): TypeError: Class constructor UpgradeComponent cannot be invoked without 'new'
TypeError: Class constructor UpgradeComponent cannot be invoked without 'new'
at new CollectionPermissionsCard (core/templates/combined-tests.spec.js:44348:19139)
at createClass (core/templates/combined-tests.spec.js:193077:20)
at createDirectiveInstance (core/templates/combined-tests.spec.js:192954:22)
at createViewNodes (core/templates/combined-tests.spec.js:200043:38)
at callViewAction (core/templates/combined-tests.spec.js:200359:13)
at execComponentViewsAction (core/templates/combined-tests.spec.js:200278:13)
at createViewNodes (core/templates/combined-tests.spec.js:200071:5)
at createRootView (core/templates/combined-tests.spec.js:199952:5)
at callWithDebugContext (core/templates/combined-tests.spec.js:200926:27)
at Object.debugCreateRootView [as createRootView] (core/templates/combined-tests.spec.js:200471:12)
error properties: Object({ rejection: TypeError: Class constructor UpgradeComponent cannot be invoked without 'new', promise: [object Promise], zone: Zone({ _parent: Zone({ _parent: null, _name: '<root>', _properties: Object({ }), _zoneDelegate: ZoneDelegate({ _taskCounts: Object({ microTask: 0, macroTask: 0, eventTask: 0 }), zone: <circular reference: Object>, _parentDelegate: null, _forkZS: null, _forkDlgt: null, _forkCurrZone: null, _interceptZS: null, _interceptDlgt: null, _interceptCurrZone: null, _invokeZS: null, _invokeDlgt: null, _invokeCurrZone: null, _handleErrorZS: null, _handleErrorDlgt: null, _handleErrorCurrZone: null, _scheduleTaskZS: null, _scheduleTaskDlgt: null, _scheduleTaskCurrZone: null, _invokeTaskZS: null, _invokeTaskDlgt: null, _invokeTaskCurrZone: null, _cancelTaskZS: null, _cancelTaskDlgt: null, _cancelTaskCurrZone: null, _hasTaskZS: null, _hasTaskDlgt: null, _hasTaskDlgtOwner: null, _hasTaskCurrZone: null }) }), _name: 'ProxyZone', _properties: Object({ ProxyZoneSpec: Pro ...
Additional context When trying to push the changes to an existing PR, the frontend tests are failing every time to give the error as mentioned above. Even after trying to push the code again and rerunning the tests too, the frontend tests are failing which are most probably flakes as the frontend tests passed after the changes were pushed.
Issue Analytics
- State:
- Created 3 years ago
- Comments:10 (9 by maintainers)
Top Results From Across the Web
How to Fix Flaky Tests - Semaphore CI
Randomly failing tests are the hardest to debug. Here's a framework you can use to fix them and keep your test suite healthy....
Read more >Flaky Tests: Getting Rid Of A Living Nightmare In Testing
A flaky test is one that fails to produce the same result each time the same analysis is run. The build will fail...
Read more >Flaky tests - GitLab Docs
It's a test that sometimes fails, but if you retry it enough times, it passes, eventually. ... Example 1: A test that breaks...
Read more >Stop the Retries in Tests & Reruns of Failing Tests - Applitools
Flaky tests happen because the test conditions fail to occur consistently. Why? Anand Bagmar helps you uncover the root causes of flakiness.
Read more >How to reduce flaky test failures - CircleCI
Flaky tests, also known as flappers, fail to produce accurate and consistent results. These tests may be unreliable because of newly-written ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@parulpriyedarshani Yes, yesterday this happened to me also. While running the frontend tests all checks were passed but just after this when I tried pushing my code I got the same error in frontend tests. But when I tried after some time without making any changes in the code it showed no error and the code was pushed.
Frontend flakes have been fixed