-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 -->
- Loading branch information
1 parent
7f3929e
commit 01b31b3
Showing
11 changed files
with
50 additions
and
94 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters