PromucFlow_constructor/app/client/cypress/integration/Regression_TestSuite/ClientSideTests
Rajat Agrawal 58fea85a38
chore: Add rapid mode to skip new app creation in cypress test (#22854)
Fixes #22878

This pr adds a flag called 'rapidMode' in cypress index file.

```
cypress/support/index.js

let rapidMode = {
  enabled: false, // Set it to true to skip app creation during a test re-run
  appName: "4a9b62a0", // Replace it with your app name
  pageName: "page1", // Replace it with the page name
  pageID: "644f8d6e21506c33a366854b", // Replace it with pageID

  url: function () {
    return `app/${this.appName}/${this.pageName}-${this.pageID}/edit`;
  },
};
```
When rapid mode is enabled, the cypress test will

1. Skip relogin if the test user is already logged in.
2. Skip creation of a new app and use a previously created app, passed
as param.

The flag needs to be disabled when the code needs to be merged to
release, and is meant for debugging/testing while writing tests on local
development setup only.

When enabled, a cypress test saves around 25 sec per rerun.

Future fixes would include skipping multiple workspace page visit if a
developer is using dsl for setting up fixtures. It would save around
another 10-15 seconds per test re-run.
2023-05-02 16:17:23 +05:30
..
ActionExecution test: Cypress tests - Grouping logical it blocks - Part 2 (#22623) 2023-04-25 05:59:40 +05:30
AdminSettings test: Cypress - fix for ExplorerTests/Admin_settings_spec.js (#22686) 2023-04-25 03:23:36 +05:30
AppNavigation fix: Combine app navigation tests where possible to reduce Cypress cloud costs (#21868) 2023-03-29 18:37:07 +05:30
AuditLogs test: handle login success & errors properly (#22524) 2023-04-19 15:20:54 +05:30
Autocomplete fix: cursor position not between parenthesis for function autocomplete (#22694) 2023-04-28 15:33:12 +05:30
Binding test: Cypress - Flaky test fix (#22130) 2023-04-18 14:43:28 +05:30
Branding test: handle login success & errors properly (#22524) 2023-04-19 15:20:54 +05:30
BugTests fix: added condition to store nav context if datasource already created on changing the page from ds routes (#22557) 2023-04-26 16:03:35 +00:00
CodeComment chore: upgrade to prettier v2 + enforce import types (#21013)Co-authored-by: Satish Gandham <hello@satishgandham.com> Co-authored-by: Satish Gandham <satish.iitg@gmail.com> 2023-03-16 17:11:47 +05:30
DynamicHeight test: list widget bug and other regression bugs automation (#21563) 2023-04-24 08:07:48 +05:30
EmbedSettings feat: Improved App Navigation (#19312) 2023-03-23 17:11:58 +05:30
ExplorerTests test: Cypress - fix for ExplorerTests/Admin_settings_spec.js (#22686) 2023-04-25 03:23:36 +05:30
FormNativeToRawTests chore: upgrade to prettier v2 + enforce import types (#21013)Co-authored-by: Satish Gandham <hello@satishgandham.com> Co-authored-by: Satish Gandham <satish.iitg@gmail.com> 2023-03-16 17:11:47 +05:30
Git fix: [Git] Avoid 404 when checking out a branch (#21894) 2023-04-04 10:29:00 +05:30
Github test: handle login success & errors properly (#22524) 2023-04-19 15:20:54 +05:30
Google test: handle login success & errors properly (#22524) 2023-04-19 15:20:54 +05:30
IDE fix: Maintain focus on editor when Escape is pressed with autocomplete menu open (#22164) 2023-04-14 12:11:47 +05:30
JSLibrary fix: JSPDF output API crash (#20544) 2023-02-10 13:13:22 +05:30
JSObject feat: JSObject variable as a state (JSObject variable mutation) (#19926) 2023-04-07 13:11:36 +05:30
Linting test: Cypress - Flaky fix (#22263) 2023-04-12 00:34:32 +05:30
MobileResponsiveTests test: Generic test for All widgets wrt autolayout (#22461) 2023-05-01 21:07:43 +05:30
Onboarding feat: signposting stickiness (#22088) 2023-05-02 15:22:05 +05:30
OtherUIFeatures fix: Remove toast messages (#22267) 2023-04-27 14:20:23 +05:30
PeekOverlay test: Cypress tests - Grouping logical it blocks - Part 2 (#22623) 2023-04-25 05:59:40 +05:30
PropertyPane test: Cypress tests - Grouping logical it blocks - Part 2 (#22623) 2023-04-25 05:59:40 +05:30
Refactoring test: Cypress tests - Grouping logical it blocks - Part 2 (#22623) 2023-04-25 05:59:40 +05:30
SettingsPane test: Cypress tests - Grouping logical it blocks - Part 2 (#22623) 2023-04-25 05:59:40 +05:30
Templates fix: Updates + icon to take user to select pages page instead of direclty importing a template (#22595) 2023-04-28 08:36:33 +05:30
ThemingTests test: Cypress tests - Grouping logical it blocks - Part 2 (#22623) 2023-04-25 05:59:40 +05:30
VisualTests fix: Remove toast messages (#22267) 2023-04-27 14:20:23 +05:30
Widgets chore: Add rapid mode to skip new app creation in cypress test (#22854) 2023-05-02 16:17:23 +05:30
Workspace chore: Add rapid mode to skip new app creation in cypress test (#22854) 2023-05-02 16:17:23 +05:30