PromucFlow_constructor/app/client/cypress/e2e/Regression/ClientSide/BugTests
Favour Ohanekwu 95fa2328a8
fix: reset widget to default value after setter method (#29151)
## Description
This PR ensures that widgets are reset to their default value after the
`setValue` setter method is used to set its value

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

#### Media
> A video or a GIF is preferred. when using Loom, don’t embed because it
looks like it’s a GIF. instead, just link to the video
>
>
#### Type of change
> Please delete options that are not relevant.
- Bug fix (non-breaking change which fixes an issue)
- New feature (non-breaking change which adds functionality)
- Breaking change (fix or feature that would cause existing
functionality to not work as expected)
- Chore (housekeeping or task changes that don't impact user perception)
- This change requires a documentation update
>
>
>
## Testing
>
#### How Has This Been Tested?
> Please describe the tests that you ran to verify your changes. Also
list any relevant details for your test configuration.
> Delete anything that is not relevant
- [ ] Manual
- [ ] JUnit
- [ ] Jest
- [ ] Cypress
>
>
#### 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
- [ ] My code follows the style guidelines of this project
- [ ] I have performed a self-review of my own code
- [ ] I have commented my code, particularly in hard-to-understand areas
- [ ] I have made corresponding changes to the documentation
- [ ] My changes generate no new warnings
- [ ] I have added tests that prove my fix is effective or that my
feature works
- [ ] 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


<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

- **New Features**
- Implemented a new reset functionality for widgets, allowing users to
revert to default values after changes.
  - Enhanced widget meta updates with a new reset action.

- **Bug Fixes**
- Added test cases to ensure widget reset functionality works as
expected, even after asynchronous operations.

- **Refactor**
- Refactored evaluation logic to improve handling of widget meta updates
and resets.
  - Improved action execution logic for resetting widget properties.

- **Tests**
- Expanded end-to-end regression tests to cover new reset widget
functionality.

- **Documentation**
- Updated internal documentation to reflect new action types and
evaluation processes related to widget meta updates.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: Druthi Polisetty <druthi@appsmith.com>
2023-12-08 11:16:31 +01:00
..
AbortAction_Spec.ts test: Cypress | SetWidget property validations + CI Stabilize (#28456) 2023-11-03 12:27:24 +05:30
AllWidgets_Reset_Spec.ts refactor: Cypress SelectEntityByName (#29012) 2023-11-23 15:46:13 +05:30
ApiBugs_Spec.ts fix: Improvements to Sidebar for navigation (#29205) 2023-11-30 06:11:59 +05:30
Bug6732_Spec.ts
Bug9334_Spec.ts fix: Improvements to Sidebar for navigation (#29205) 2023-11-30 06:11:59 +05:30
Bug14002_Spec.ts
Bug14987_spec.js feat: Create Query asks for Page (#29253) 2023-12-05 11:20:36 +05:30
Bug15056_Spec.ts refactor: Cypress SelectEntityByName (#29012) 2023-11-23 15:46:13 +05:30
Bug15909_Spec.ts chore: Refactor switching segments in Entity Explorer (#29130) 2023-11-28 16:41:54 +05:30
Bug16702_Spec.ts
Bug18035_Spec.ts fix: Improvements to Sidebar for navigation (#29205) 2023-11-30 06:11:59 +05:30
Bug18369_Spec.ts chore: Refactor switching segments in Entity Explorer (#29130) 2023-11-28 16:41:54 +05:30
Bug19893_spec.ts
Bug19982_Spec.ts
Bug20275_Spec.js refactor: Cypress SelectEntityByName (#29012) 2023-11-23 15:46:13 +05:30
Bug20841_Spec.ts refactor: Cypress Entity Explorer Presence functions (#29154) 2023-11-29 16:41:33 +05:30
Bug21734_Spec.ts fix: Improvements to Sidebar for navigation (#29205) 2023-11-30 06:11:59 +05:30
Bug22281_WelcomeTour_spec.ts
Bug24194_Spec.ts refactor: Cypress SelectEntityByName (#29012) 2023-11-23 15:46:13 +05:30
Bug24486_Spec.ts refactor: Cypress Entity Explorer Presence functions (#29154) 2023-11-29 16:41:33 +05:30
Bug25148_Spec.ts
Bug25894_spec.ts refactor: Cypress SelectEntityByName (#29012) 2023-11-23 15:46:13 +05:30
Bug25982_Spec.ts refactor: Cypress SelectEntityByName (#29012) 2023-11-23 15:46:13 +05:30
Bug26126_spec.ts fix: fix ds required fields (#26940) 2023-09-11 10:54:32 +01:00
Bug26716_Spec.ts refactor: Cypress SelectEntityByName (#29012) 2023-11-23 15:46:13 +05:30
Bug26941_Spec.ts fix: api error update full error object instead of only defined keys (#27316) 2023-09-20 16:12:43 +05:30
Bug27119_Spec.ts fix: reset widget to default value after setter method (#29151) 2023-12-08 11:16:31 +01:00
Bug27817_Spec.ts test: Cypress | SetWidget property validations + CI Stabilize (#28626) 2023-11-06 15:18:00 +05:30
Bug28287_Spec.ts refactor: Cypress SelectEntityByName (#29012) 2023-11-23 15:46:13 +05:30
Bug28731_Spec.ts chore: Refactor switching segments in Entity Explorer (#29130) 2023-11-28 16:41:54 +05:30
Bug28750_Spec.ts fix: schema accordions don't open on search, placeholder for search input (#28785) 2023-11-13 12:38:04 +05:30
Bug28764_Spec.ts chore: Refactor switching segments in Entity Explorer (#29130) 2023-11-28 16:41:54 +05:30
Bug28985_spec.ts chore: Refactor switching segments in Entity Explorer (#29130) 2023-11-28 16:41:54 +05:30
Bug29131_spec.ts refactor: Cypress Entity Explorer Presence functions (#29154) 2023-11-29 16:41:33 +05:30
Bugs26410_spec.ts refactor: Cypress SelectEntityByName (#29012) 2023-11-23 15:46:13 +05:30
CatchBlock_Spec.ts refactor: Cypress SelectEntityByName (#29012) 2023-11-23 15:46:13 +05:30
DatasourceSchema_spec.ts feat: Create Query asks for Page (#29253) 2023-12-05 11:20:36 +05:30
defaultFilterTextValue_Spec.ts
DSDiscardBugs_spec.ts chore: Refactor switching segments in Entity Explorer (#29130) 2023-11-28 16:41:54 +05:30
formHasChanged_Spec.ts refactor: Cypress SelectEntityByName (#29012) 2023-11-23 15:46:13 +05:30
GitBugs_Spec.ts fix: Improvements to Sidebar for navigation (#29205) 2023-11-30 06:11:59 +05:30
InputTruncateCheck_Spec.ts refactor: Cypress Entity Explorer Presence functions (#29154) 2023-11-29 16:41:33 +05:30
invalidLintError_Spec.ts
InvalidURL_Spec.ts
JSParse_Spec.ts
Moment_Spec.ts refactor: Cypress Entity Explorer Presence functions (#29154) 2023-11-29 16:41:33 +05:30
MultipleOnPageLoadConfirmation_Spec.ts