PromucFlow_constructor/app/client/cypress/support
Aishwarya-U-R 01b31b3ae3
test: Cypress | Replace static waits from Helpers + Flaky fixes (#29856)
## Description
- This PR removes static waits from below helpers & added dynamic checks
as needed:
         - apiPage.CreateApi(), apiPage.CreateAndFillGraphqlApi()
         - app/client/cypress/support/Pages/AppSettings/ThemeSettings.ts
- cy.CreateNewAppInNewWorkspace() - replaced static wait with dynamic
check
- dataSources.NavigateToDSCreateNew() - removed wait, updated logic
         - agHelper.VerifyEvaluatedValue()
- Flaky fix below specs:
- /Git/GitSync/GitSyncedApps_spec.js (fixed testcase # 2 - 4th onwards
is failing due to childbranch/master change - to be checked further)
- /Git/GitDiscardChange/DiscardChanges_spec.js
(EditorNavigation.NavigateToDatasource(), Sidebar.navigate())
         - /BugTests/ApiBugs_Spec.ts (3rd case)
         - /Dropdown/Dropdown_onOptionChange_spec.js (3rd case)
         - /ServerSide/ApiTests/API_Search_spec.js (3rd case)
- Removed extra Refresh call from before hook in
/BugTests/ApiBugs_Spec.ts
         

#### Type of change
- Script update (non-breaking change which fixes an issue)

## Testing
#### How Has This Been Tested?
- [X] Cypress CI runs

## Checklist:
#### QA activity:
- [X] Added `Test Plan Approved` label after Cypress tests were reviewed

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

## Summary by CodeRabbit

- **Bug Fixes**
	- Improved the reliability of API creation processes.
- Enhanced the user experience in theme settings by removing unnecessary
delays.
	- Streamlined navigation in the data source creation workflow.

- **Refactor**
- Optimized test automation scripts for better performance and
maintainability.
	- Updated element interaction methods to increase test robustness.
- Refined logic for selecting and asserting UI components within test
cases.

- **Chores**
- Adjusted test suite configurations to include new test cases and
exclude a specific test file.
	- Removed redundant page refresh steps to improve test execution speed.

- **Tests**
- Added new assertions to validate the evaluated values in test
scenarios.
- Simplified data source and query creation in widget test cases for
clarity.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-01-05 11:42:03 +05:30
..
ee chore: code splitting for multiple env feature (#25479) 2023-07-21 12:53:17 +07:00
Objects test: Cypress | Replace static with Dynamic checks (#29664) 2023-12-22 17:20:05 +05:30
Pages test: Cypress | Replace static waits from Helpers + Flaky fixes (#29856) 2024-01-05 11:42:03 +05:30
AdminSettingsCommands.js test: Cypess | Oracle DS validations added (Part 2) + CI Stabilize (#27282) 2023-09-14 16:53:42 +05:30
ApiCommands.js chore: App Sidebar testing (#28479) 2023-11-15 08:01:12 +05:30
commands.js fix: updated the design for the admin users (#29712) 2023-12-25 17:54:46 +05:30
Constants.js feat: add intercept for license flags (#29245) 2023-12-01 11:38:45 +05:30
dataSourceCommands.js chore: Refactor switching segments in Entity Explorer (#29130) 2023-11-28 16:41:54 +05:30
e2e.js test: Cypress - Added cypress grep library (#29259) 2023-12-07 18:23:27 +05:30
gitSync.js test: Cypress | Replace static with Dynamic checks (#29664) 2023-12-22 17:20:05 +05:30
queryCommands.js feat: Create Query asks for Page (#29253) 2023-12-05 11:20:36 +05:30
RapidMode.ts fix: Fix default selected row on a page change when primary key is selected in a table and is unavailable in new data (#23863) 2023-06-23 10:27:48 +05:30
themeCommands.js feat: [epic] appsmith design system version 2 deduplication (#22030) 2023-05-20 00:07:06 +05:30
timeout.js fix: Text getting clipped for Italic font in Table Widget V1 (#15549) 2022-08-16 11:12:31 +05:30
widgetCommands.js refactor: Cypress Entity Explorer Presence functions (#29154) 2023-11-29 16:41:33 +05:30
WorkspaceCommands.js test: Cypress | Replace static waits from Helpers + Flaky fixes (#29856) 2024-01-05 11:42:03 +05:30