PromucFlow_constructor/app/client/cypress/e2e/Regression/ClientSide/BugTests
Hetu Nandu 5ab58504a8
feat: Create Query asks for Page (#29253)
## Description

Shows a list of pages to select when creating a query. It will only show
when there are multiple pages in an app. If not, clicking the button
directly creates the query in the only page.


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

#### Media


![Page](https://github-production-user-asset-6210df.s3.amazonaws.com/20532920/285431639-91758301-7b9e-4ee8-a209-afc563b0d96b.png?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A/20231204/us-east-1/s3/aws4_request&X-Amz-Date=20231204T093109Z&X-Amz-Expires=300&X-Amz-Signature=bfff9c87288f9ca913c14bc3284e9974ad805130462a375adb271936777eec26&X-Amz-SignedHeaders=host&actor_id=12022471&key_id=0&repo_id=275993885)


#### Type of change

- New feature (non-breaking change which adds functionality)

## 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
- [ ] 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

- **Refactor**
- Streamlined the process for creating queries from the datasource
editor across various test suites.
- Enhanced the control flow and logic for handling data sources and
queries in test scenarios.

- **Bug Fixes**
- Standardized the method of creating new queries after saving a
datasource to improve test reliability.
- Removed deprecated code and updated test cases to use the new
`CreateQueryForDS` function.

- **Tests**
- Updated test scripts to reflect changes in datasource interaction and
query creation.
- Added new assertions and modified existing ones to accommodate the
updated test flows.

- **Chores**
- Cleaned up import statements and removed unused code across multiple
test files.
- Commented out unused properties and methods to improve code
maintainability.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2023-12-05 11:20:36 +05:30
..
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 test: Cypress | (DI) Arango added validations + CI Stabilize (#26243) 2023-08-18 10:48:35 +05:30
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 test: Cypress | (DI) S3 added validations (Cont.,) + CI Stabilize (#26486) 2023-08-21 13:19:28 +05:30
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 test: Cypress - temp fix to workaround flaky CreateNewApp_spec (#24956) 2023-06-30 22:04:12 +05:30
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 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 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
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 test: Cypress | Simplifying AddDsl method (#24991) 2023-07-04 22:03:31 +05:30
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 test: Cypress | CI Stabilize (#26186) 2023-08-10 12:36:03 +05:30
JSParse_Spec.ts
Moment_Spec.ts refactor: Cypress Entity Explorer Presence functions (#29154) 2023-11-29 16:41:33 +05:30
MultipleOnPageLoadConfirmation_Spec.ts