PromucFlow_constructor/app/client/cypress/e2e/Regression/ClientSide/OtherUIFeatures
arunvjn 02c9e25f6e
fix: Log uncaught errors to debugger (#25030)
## Description
All errors from synchronous user code are handled by evaluation engine.
But if a user action schedules a timer and the callback code contains an
error, this error is never caught causing sentry to log it. This PR adds
a global "error" event listener on the worker that handles all such
uncaught errors, by logging it to console and in-app debugger.

#### PR fixes following issue(s)
Fixes #24039

#### Type of change
- Bug fix (non-breaking change which fixes an issue)
>
>
## Testing
>
#### How Has This Been Tested?
- [x] Manual
- [x] Cypress
- [ ] Jest
>
>
#### Test Plan
> Add Testsmith test cases links that relate to this PR
>
>
#### Issues raised during DP testing
> Link issues raised during DP testing for better visiblity and tracking
(copy link from comments dropped on this PR)
>
>
>
## Checklist:
#### Dev activity
- [x] My code follows the style guidelines of this project
- [x] I have performed a self-review of my own code
- [x] I have commented my code, particularly in hard-to-understand areas
- [ ] I have made corresponding changes to the documentation
- [x] My changes generate no new warnings
- [x] I have added tests that prove my fix is effective or that my
feature works
- [x] New and existing unit tests pass locally with my changes
- [ ] PR is being merged under a feature flag


#### QA activity:
- [ ] [Speedbreak
features](https://github.com/appsmithorg/TestSmith/wiki/Guidelines-for-test-plans#speedbreakers-)
have been covered
- [ ] Test plan covers all impacted features and [areas of
interest](https://github.com/appsmithorg/TestSmith/wiki/Guidelines-for-test-plans#areas-of-interest-)
- [ ] Test plan has been peer reviewed by project stakeholders and other
QA members
- [ ] Manually tested functionality on DP
- [ ] We had an implementation alignment call with stakeholders post QA
Round 2
- [ ] Cypress test cases have been added and approved by SDET/manual QA
- [ ] Added `Test Plan Approved` label after Cypress tests were reviewed
- [ ] Added `Test Plan Approved` label after JUnit tests were reviewed
2023-07-04 10:01:55 +05:30
..
Analytics_spec.js test: Cypress | Flaky fixes (#24593) 2023-06-20 14:28:06 +05:30
ApplicationURL_spec.js test: Cypress | Cy 12 upgrade + Flaky fixes (#23852) 2023-06-15 18:51:11 +05:30
DynamicLayout_spec.js
EmptyCanvas_spec.js
EntityBottomBar_spec.ts test: Cypress | Flaky fixes (#24925) 2023-07-01 00:16:57 +05:30
ErrorMessages_spec.ts test: Cypress | Cy 12 upgrade + Flaky fixes (#23852) 2023-06-15 18:51:11 +05:30
ExportApplication_spec.js test: Cypress - Flaky Fix (#24738) 2023-06-22 20:30:46 +05:30
ForkApplication_spec.js test: Cypress | Cy 12 upgrade + Flaky fixes (#23852) 2023-06-15 18:51:11 +05:30
ForkApplicationReconnectModal_spec.ts fix: cypress test added for forking critical issue (#24845) 2023-06-28 15:46:17 +05:30
ForkApplicationWithinAppEditor_spec.ts test: Cypress | Cy 12 upgrade + Flaky fixes (#23852) 2023-06-15 18:51:11 +05:30
GlobalSearch_spec.js chore: Sunset Omnibar Documentation and Snippets (#24787) 2023-06-30 15:51:08 +05:30
Inspect_Element_spec.js test: Cypress | Cy 12 upgrade + Flaky fixes (#23852) 2023-06-15 18:51:11 +05:30
lazyRender_spec.js test: Cypress | Cy 12 upgrade + Flaky fixes (#23852) 2023-06-15 18:51:11 +05:30
Logs1_spec.js test: Cypress | Flaky fixes (#24576) 2023-06-17 15:55:37 +05:30
Logs2_spec.js fix: Log uncaught errors to debugger (#25030) 2023-07-04 10:01:55 +05:30
Omnibar_spec.js test: Cypress | Flaky fixes (#24925) 2023-07-01 00:16:57 +05:30
PageOnLoad_spec.ts test: Cypress | Cy 12 upgrade + Flaky fixes (#23852) 2023-06-15 18:51:11 +05:30
PreviewMode_spec.js test: Cypress | Cy 12 upgrade + Flaky fixes (#23852) 2023-06-15 18:51:11 +05:30
ProductUpdates_spec.js
Redirects_spec.js test: Cypress | Flaky fixes (#24925) 2023-07-01 00:16:57 +05:30
Replay_Editor_spec.js feat: query creation dumb templates replaced with smart templates (#24234) 2023-06-19 15:23:34 +05:30
Replay_spec.js feat: Update the default text widget value to "Hello {{appsmith.user.name || appsmith.user.email}}" (#24705) 2023-07-03 10:38:01 +05:30
Resize_spec.js test: Cypress | Cy 12 upgrade + Flaky fixes (#23852) 2023-06-15 18:51:11 +05:30
TriggerErrors_spec.js test: Cypress | Cy 12 upgrade + Flaky fixes (#23852) 2023-06-15 18:51:11 +05:30
Unique_key_spec.js test: Cypress | Cy 12 upgrade + Flaky fixes (#23852) 2023-06-15 18:51:11 +05:30
UpdateApplication_spec.js test: Cypress | Flaky fixes (#24593) 2023-06-20 14:28:06 +05:30
ViewMode_spec.js test: Cypress | Flaky fixes (#24925) 2023-07-01 00:16:57 +05:30
Widget_Error_spec.js test: Cypress | Cy 12 upgrade + Flaky fixes (#23852) 2023-06-15 18:51:11 +05:30