PromucFlow_constructor/app/client/cypress/locators
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
..
AdminsSettings.js feat: Connection pooling CE (#27328) 2023-10-10 14:54:28 +05:30
ApiEditor.js test: Cypress - Flaky Fix (#25979) 2023-08-03 23:54:36 +05:30
apiWidgetslocator.json fix: casing changes (#23515) 2023-06-09 14:22:27 +05:30
Applications.json fix: Fork button text color/hover, and fork=true query param fix (#27336) 2023-09-26 07:38:05 +05:30
AppNavigation.json feat: [epic] appsmith design system version 2 deduplication (#22030) 2023-05-20 00:07:06 +05:30
CMSApplocators.js feat: [epic] appsmith design system version 2 deduplication (#22030) 2023-05-20 00:07:06 +05:30
commonlocators.json refactor: Cypress SelectEntityByName (#29012) 2023-11-23 15:46:13 +05:30
DatasourcesEditor.json feat: Create Query asks for Page (#29253) 2023-12-05 11:20:36 +05:30
DynamicInput.json feat: keyboard accessible multi-select dropdown, action selector and text input (#10622) 2022-02-10 16:42:44 +05:30
EnterpriseAdminSettingsLocators.json feat: code split branding helpers, add auth locators in CE (#26379) 2023-08-16 18:08:10 +05:30
explorerlocators.json refactor: Cypress SelectEntityByName (#29012) 2023-11-23 15:46:13 +05:30
FirstTimeUserOnboarding.json feat: Create Query asks for Page (#29253) 2023-12-05 11:20:36 +05:30
FormControl.json feat: added trigger for collection property editor, making it dd for mongo (#24213) 2023-06-14 12:16:09 +05:30
FormWidgets.json ci: Fix flaky test - MultiSelectWidget/postgres_spec.ts (#26284) 2023-08-21 10:59:25 +05:30
GeneratePage.json chore: Create tooltip Component (#23382) 2023-05-22 12:05:21 +03:00
GithubForm.json chore: Add redirect and homepage URL on Github config page (#24395) 2023-06-13 19:23:33 +05:30
gitSyncLocators.js chore: Updating strings to sentence case and moving brand colors logic update to tenant reducer (#28219) 2023-10-19 23:42:01 +05:30
GlobalSearch.json chore: Sunset Omnibar Documentation and Snippets (#24787) 2023-06-30 15:51:08 +05:30
GoogleForm.json fix: Adding a fix for copy clipboard URL not working on HTTP domain (#21313) 2023-03-14 11:41:52 +05:30
GuidedTour.json chore: Create tooltip Component (#23382) 2023-05-22 12:05:21 +03:00
HelpLocators.json Fix/help modal fab button toggle issue 1681 (#1692) 2020-11-12 16:56:54 +05:30
HomePage.js feat: Adds support for showing navbar in embedded view. (#23725) 2023-06-05 19:37:39 +05:30
jsActionLocators.json chore: refactors for supporting git branches (#7695) 2021-10-18 19:33:44 +05:30
JSEditor.json feat: js object v1 run and settings redesign (#11456) 2022-04-28 17:51:02 +01:00
jsonFormWidget.json feat: [epic] appsmith design system version 2 deduplication (#22030) 2023-05-20 00:07:06 +05:30
Layout.json feat: [epic] appsmith design system version 2 deduplication (#22030) 2023-05-20 00:07:06 +05:30
LoginPage.json fix: fork app button not opening the fork modal for non-signed in users (#12479) 2022-04-11 10:44:50 +05:30
ModalWidget.json fix: Update title casing for action selector fields (#22270) 2023-05-23 11:17:47 +05:30
Omnibar.json test: Cypress | Cy 12 upgrade + Flaky fixes (#23852) 2023-06-15 18:51:11 +05:30
Onboarding.json Onboarding flow (#2311) 2020-12-30 13:01:20 +05:30
OneClickBindingLocator.ts feat: JSON form widget one click binding integration (#25873) 2023-10-03 13:40:51 +05:30
Pages.json refactor: Cypress SelectEntityByName (#29012) 2023-11-23 15:46:13 +05:30
PgAdminlocators.json test: Cypress | CI Stablize + verifying DS Connection Errors (DI) (#26004) 2023-08-08 14:44:46 +05:30
publishWidgetspage.json feat/Replace fusion charts with Echarts (#24249) 2023-07-28 18:59:16 +05:30
QueryEditor.json feat: Create Query asks for Page (#29253) 2023-12-05 11:20:36 +05:30
RatingWidgetLocators.ts test: Cypress - Rating widget (#25944) 2023-08-08 12:16:48 +05:30
ReconnectLocators.js feat: extend datasource reconnect modal tooltip to include title (#28696) 2023-11-15 07:39:29 +05:30
SignupPage.json fix: revert for super users and update ui for profiling ques for non super users (#27942) 2023-10-16 17:37:06 +05:30
TemplatesLocators.json chore: Fixes failing spec, Uses a different template (#28573) 2023-11-02 16:25:33 +05:30
ThemeLocators.json chore: add color validation + native color picker (#25355) 2023-08-07 11:55:10 +03:00
ViewWidgets.json feat/Replace fusion charts with Echarts (#24249) 2023-07-28 18:59:16 +05:30
welcomePage.json fix: revert for super users and update ui for profiling ques for non super users (#27942) 2023-10-16 17:37:06 +05:30
WidgetLocators.ts test: Cypress - Map chart automation (#28512) 2023-11-03 16:59:22 +05:30
Widgets.json test: cypress - Button widget cases (#26485) 2023-08-21 17:42:49 +05:30