PromucFlow_constructor/app/client/cypress/e2e/Regression/ClientSide/BugTests
sneha122 881ac75ff7
fix: empty query response on page load issue fixed (#28296)
## Description

When we bind a successfully running query to a widget, the query gets
executed on page load, so in such a case, we were able to see the query
in the widget, but when visiting query editor, response tab is empty.
This PR fixes that issue.

<img width="904" alt="Screenshot 2023-10-23 at 3 35 50 PM"
src="https://github.com/appsmithorg/appsmith/assets/30018882/b0244c87-d18f-4d8c-ad35-35cd1f4abfd6">


**Root Cause:**
In order to see the response in the response tab, we need to have action
config, execute API response and responseDisplayFormat to be present.
responseDisplayFormat denotes whether to show response in Table, Json or
Raw format.
This responseDisplayFormat gets set in `setDefaultActionDisplayFormat`
method. This property is set on action config object itself. This method
is called from execute `executePluginActionSaga` and
`executePluginActionSaga` is called from `executePageLoadAction`, so the
flow of actions looks as below:

- `executePageLoadAction`
      - `executePluginActionSaga`
              - `setDefaultActionDisplayFormat`

Once the responseDisplayFormat was set, `executePageLoadAction` was
again resetting the action config object in the redux store, thus
removing this responseDisplayFormat property and hence empty response
tab.

**Note: This bug is not a regression, it has existed from a long time.**

#### PR fixes following issue(s)
Fixes #28287 
#### 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
- Bug fix (non-breaking change which fixes an issue)
>
>
>
## 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
- [x] Manual
- [ ] JUnit
- [ ] Jest
- [x] 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
- [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
- [ ] 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

Co-authored-by: “sneha122” <“sneha@appsmith.com”>
2023-10-26 15:09:00 +05:30
..
AbortAction_Spec.ts feat: enable generate CRUD page for MsSQL plugin (#27195) 2023-09-20 14:12:11 +05:30
AllWidgets_Reset_Spec.ts chore: remove feature flag for ramps (#26448) 2023-09-05 15:23:44 +07:00
ApiBugs_Spec.ts fix: converted sniping test cases to support suggested widgets, api binding bug (#26911) 2023-09-08 13:12:48 +05:30
Bug6732_Spec.ts
Bug9334_Spec.ts test: Cypress | CI Stabilize (Skipped tests fixes) + Cypress upgrade to v13.0.0 (#26583) 2023-08-30 16:24:37 +05:30
Bug14002_Spec.ts
Bug14987_spec.js test: Cypress | Cy 12 upgrade + Flaky fixes (#23852) 2023-06-15 18:51:11 +05:30
Bug15056_Spec.ts test: Cypress | (DI) Arango added validations + CI Stabilize (#26243) 2023-08-18 10:48:35 +05:30
Bug15909_Spec.ts test: Cypress version upgrade Cy 11.2 + Flaky fixes (#23667) 2023-05-24 18:00:39 +05:30
Bug16702_Spec.ts test: Cypress | (DI) Arango added validations + CI Stabilize (#26243) 2023-08-18 10:48:35 +05:30
Bug18035_Spec.ts chore: Updating strings to sentence case and moving brand colors logic update to tenant reducer (#28219) 2023-10-19 23:42:01 +05:30
Bug18369_Spec.ts test: Cypress | Simplifying AddDsl method (#24991) 2023-07-04 22:03:31 +05:30
Bug19893_spec.ts test: Cypress | (DI) S3 added validations (Cont.,) + CI Stabilize (#26486) 2023-08-21 13:19:28 +05:30
Bug19982_Spec.ts
Bug20275_Spec.js
Bug20841_Spec.ts test: Cypress version upgrade Cy 11.2 + Flaky fixes (#23667) 2023-05-24 18:00:39 +05:30
Bug21734_Spec.ts chore: code splitting for multiple env feature (#25479) 2023-07-21 12:53:17 +07:00
Bug22281_WelcomeTour_spec.ts test: Cypress - temp fix to workaround flaky CreateNewApp_spec (#24956) 2023-06-30 22:04:12 +05:30
Bug24194_Spec.ts feat: Improve Linting performance (#23865) 2023-07-05 14:34:03 +01:00
Bug24486_Spec.ts test: Cypress | CI Stablize + Other improvements (#28254) 2023-10-25 19:33:07 +05:30
Bug25148_Spec.ts fix: edit ds button was disabled due to no user perm in ds object (#25235) 2023-07-11 13:30:32 +05:30
Bug25894_spec.ts feat: assistive binding (#27070) 2023-09-15 21:23:51 +05:30
Bug25982_Spec.ts test: Cypress | CI Stabilize (#26186) 2023-08-10 12:36:03 +05:30
Bug26126_spec.ts fix: fix ds required fields (#26940) 2023-09-11 10:54:32 +01:00
Bug26716_Spec.ts test: Cypress | (DI) SMTP & Airtable validations + CI Stabilize (#26991) 2023-09-08 14:42:27 +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
Bug27817_Spec.ts fix: table selection in schema preview data broken (#27823) 2023-10-06 17:35:19 +05:30
Bug28287_Spec.ts fix: empty query response on page load issue fixed (#28296) 2023-10-26 15:09:00 +05:30
Bugs26410_spec.ts fix: This PR excludes Bug26410 test for airgapped instances (#26619) 2023-08-24 19:54:27 +05:30
CatchBlock_Spec.ts test: Cypress | (DI) Arango added validations + CI Stabilize (#26243) 2023-08-18 10:48:35 +05:30
DatasourceSchema_spec.ts test: Cypress | Firestore validations added + CI Stabilize (#27554) 2023-09-25 20:02:54 +05:30
defaultFilterTextValue_Spec.ts test: Cypress | Simplifying AddDsl method (#24991) 2023-07-04 22:03:31 +05:30
DSDiscardBugs_spec.ts test: Cypess | Oracle DS validations added (Part 2) + CI Stabilize (#27282) 2023-09-14 16:53:42 +05:30
formHasChanged_Spec.ts test: Cypress | Simplifying AddDsl method (#24991) 2023-07-04 22:03:31 +05:30
GitBugs_Spec.ts test: Cypress | CI Stablize + Other improvements (#28254) 2023-10-25 19:33:07 +05:30
InputTruncateCheck_Spec.ts test: Cypress | (DI) Arango added validations + CI Stabilize (#26243) 2023-08-18 10:48:35 +05:30
invalidLintError_Spec.ts
InvalidURL_Spec.ts test: Cypress | CI Stabilize (#26186) 2023-08-10 12:36:03 +05:30
JSParse_Spec.ts
Moment_Spec.ts test: Cypress | CI Stablize + Other improvements (#28254) 2023-10-25 19:33:07 +05:30
MultipleOnPageLoadConfirmation_Spec.ts