PromucFlow_constructor/app/client/cypress/e2e/Regression/ClientSide
Aishwarya-U-R e9a1f86e22
test: Cypress | CI Stablize + Other improvements (#28254)
## Description
**This PR does the below improvements:**
- Handles initial empty error toast- with cy.LogOut()
- Calling cy.LoginFromAPI() per need only - to improve execution time 
- Update agHelper.UpdateCodeInput()
- Added waitForNetworkCall for AsserHelper methods to only get api call
& validate
- Added gitSync.AuthorizeKeyToGitea() - to validate keyGenerate success
- Adding validationg for 'Unable to import application in workspace'
- cy.CreateNewAppInNewWorkspace() improved
- agHelper.RemoveUIElement() created to handle tooltip, toast,
evaluatedpopup & removed duplicates
- cy.merge() improved to call assertHelper
- assertHelper.AssertNetworkStatus() to handle both array & individual
status checks & return actual responseCode
- createBranch & generatedKey intercepts added to git operation
validations
- homePage.AssertApplication() created
- Removed cy.Logout() & Login improved - brings down total run time to
less than 1 hr from 1+ hrs
- entityExplorer.NavigateToSwitcher() improved to check status
- dataSources.ValidateDSDeletion() improved to handle one of array toast
for array value also
- assertHelper.WaitForNetworkCall() improved to wait & return latest
request
- Private methods processNetworkStatus() & processNetworkResponseData()
created
  
**Also flaky fixes below:**
- ServerSide/QueryPane/S3_2_spec.ts - Adding sleep for CI flaky
behaviour
- Trial fix for
cypress/e2e/Regression/ClientSide/OtherUIFeatures/PageOnLoad_spec.ts
- GitWithJSLibrary/GitwithCustomJSLibrary_spec.js - Handling Import
failure at various points in the flow
- ExplorerTests/Widgets_Copy_Paste_Delete_Undo_Keyboard_Event_spec.js
   - ClientSide/JSLibrary/Library_spec.ts - asserting success import
   - /OtherUIFeatures/ApplicationURL_spec.js - using cy.url()
   - /ClientSide/Templates/Fork_Template_spec.js
- ServerSide/Postgres_DataTypes/Binary_Spec.ts &
/Postgres_DataTypes/Json_Spec.ts - Adding sleep for CI flaky behaviour
   - ClientSide/Widgets/List/List4_2_spec.js
   - /Git/ExistingApps/v1.9.24/DSCrudAndBindings_Spec.ts

#### Type of change
- Script fix (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
2023-10-25 19:33:07 +05:30
..
ActionExecution test: Cypress | CI Stablize + Other improvements (#28254) 2023-10-25 19:33:07 +05:30
AdminSettings test: Cypress | CI Stablize + Other improvements (#28254) 2023-10-25 19:33:07 +05:30
AppNavigation test: Cypress | CI Stablize + Other improvements (#28254) 2023-10-25 19:33:07 +05:30
AssistiveBinding feat: assistive binding (#27070) 2023-09-15 21:23:51 +05:30
AuditLogs chore: Optimising the code for admin settings page (#25404) 2023-07-18 15:18:48 +05:30
Autocomplete test: Cypress | CI Stablize + Other improvements (#28254) 2023-10-25 19:33:07 +05:30
Binding chore: remove xml parser v3 as a default library (#28012) 2023-10-20 11:08:47 +05:30
Branding test: Cypress version upgrade Cy 11.2 + Flaky fixes (#23667) 2023-05-24 18:00:39 +05:30
BugTests test: Cypress | CI Stablize + Other improvements (#28254) 2023-10-25 19:33:07 +05:30
CodeComment test: Cypress | Simplifying AddDsl method (#24991) 2023-07-04 22:03:31 +05:30
CommunityTemplate feat: community templates UI (#27302) 2023-09-25 11:57:23 +05:30
Debugger feat: JSON form widget one click binding integration (#25873) 2023-10-03 13:40:51 +05:30
DynamicHeight test: Cypress | CI Stablize + Other improvements (#28254) 2023-10-25 19:33:07 +05:30
Editor fix: excluding intercom test cases for airgap (#23974) 2023-06-02 12:10:49 +05:30
EmbedSettings test: Cypess | Oracle DS validations added (Part 4) + CI Stabilize (#27348) 2023-09-19 14:17:30 +05:30
ExplorerTests test: Cypress | CI Stablize + Other improvements (#28254) 2023-10-25 19:33:07 +05:30
Fork test: Cypress | CI Stabilize + Other test improvements (#28172) 2023-10-20 07:45:47 +05:30
FormLogin test: Cypress | CI Stablize + Other improvements (#28254) 2023-10-25 19:33:07 +05:30
FormNativeToRawTests test: Gsheet Automation (#25255) 2023-07-26 18:56:24 +05:30
Git test: Cypress | CI Stablize + Other improvements (#28254) 2023-10-25 19:33:07 +05:30
Github test: Cypress - Flaky Fix (#26272) 2023-08-17 16:00:37 +05:30
Google test: Cypress | CI Stablize + Other improvements (#28254) 2023-10-25 19:33:07 +05:30
IDE fix: Removes platform functions from autocomplete list in data fields (#28217) 2023-10-24 12:13:37 +05:30
JSLibrary test: Cypress | CI Stablize + Other improvements (#28254) 2023-10-25 19:33:07 +05:30
JSObject fix: Race condition in JS object mutation (#28083) 2023-10-16 13:32:27 +05:30
Linting test: Cypress | CI Stablize + Other improvements (#28254) 2023-10-25 19:33:07 +05:30
MobileResponsiveTests test: Cypress | CI Stablize + Other improvements (#28254) 2023-10-25 19:33:07 +05:30
Onboarding chore: skip signposting discovery test (#27892) 2023-10-17 17:32:05 +05:30
OneClickBinding feat: JSON form widget one click binding integration (#25873) 2023-10-03 13:40:51 +05:30
OtherUIFeatures test: Cypress | CI Stablize + Other improvements (#28254) 2023-10-25 19:33:07 +05:30
PeekOverlay test: Cypress | (DI) Arango added validations + CI Stabilize (#26243) 2023-08-18 10:48:35 +05:30
Performance feat: Improve Linting performance (#23865) 2023-07-05 14:34:03 +01:00
ProductRamps fix: Ramp selector link to redirect on portal (#28179) 2023-10-18 18:07:26 +05:30
PropertyPane test: Cypress | Simplifying AddDsl method (#24991) 2023-07-04 22:03:31 +05:30
PublishedApps test: Cypress | (DI) Arango added validations + CI Stabilize (#26243) 2023-08-18 10:48:35 +05:30
Refactoring feat: enable generate CRUD page for MsSQL plugin (#27195) 2023-09-20 14:12:11 +05:30
SettingsPane test: Cypress | CI Stablize + verifying DS Connection Errors (DI) (#26004) 2023-08-08 14:44:46 +05:30
Templates test: Cypress | CI Stablize + Other improvements (#28254) 2023-10-25 19:33:07 +05:30
ThemingTests test: Cypress - themes cases (#27682) 2023-09-29 11:38:15 +05:30
UserProfile test: Cypress version upgrade Cy 11.2 + Flaky fixes (#23667) 2023-05-24 18:00:39 +05:30
VisualTests test: Cypress | CI Stabilize + Other test improvements (#28172) 2023-10-20 07:45:47 +05:30
Walkthrough fix: run before walkthrough function to select widget before showing it (#27688) 2023-10-06 15:33:27 +05:30
Widgets test: Cypress | CI Stablize + Other improvements (#28254) 2023-10-25 19:33:07 +05:30
Workspace test: Cypress | CI Stablize + Other improvements (#28254) 2023-10-25 19:33:07 +05:30