PromucFlow_constructor/app/client/cypress/e2e/Regression/ServerSide/JsFunctionExecution
srix b033fa71b5
fix: ShowAlert with same texts, when invoked from different triggers are combined (#25395)
## Description
The toaster component, part of the react design system, generates a
unique id for each toast. The id is generated based on a content string
and the options Json. When the content and options are identical,
duplicate ids are generated. Toaster ignores any toast with duplicate
IDs. Explicitly passing a unique id overrides the internal id generation
logic. This ensures that all toasters are displayed, even if the content
and options are identical.


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

#### Media
None

#### Type of change
- Bug fix (non-breaking change which fixes an issue)


## Testing
>
#### How Has This Been Tested?
- [x ] Manual
- [ x] Cypress
>
>
#### Test Plan
cypress test case is defined in 

`app/client/cypress/e2e/Regression/ServerSide/JsFunctionExecution/PlatformFn_spec.ts/2.Bug
16135 ShowAlert with same texts, when invoked from different triggers
are combined
`

#### 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:
- [x] [Speedbreak
features](https://github.com/appsmithorg/TestSmith/wiki/Guidelines-for-test-plans#speedbreakers-)
have been covered
- [x] 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
- [x] 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-20 14:34:30 +05:30
..
Fetch_Spec.ts test: Cypress - Skipping test to unblock CI (#24836) 2023-06-26 14:37:43 +05:30
JSFunctionExecution_spec.ts test: Cypress | Simplifying AddDsl method (#24991) 2023-07-04 22:03:31 +05:30
PlatformFn_spec.ts fix: ShowAlert with same texts, when invoked from different triggers are combined (#25395) 2023-07-20 14:34:30 +05:30
SetTimeout_spec.ts test: Cypress | Flaky Fixes (#25217) 2023-07-11 10:44:13 +05:30