PromucFlow_constructor/app/client/cypress/integration/Regression_TestSuite
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
..
Application Test: Adding Smoke & Sanity suites into the CI pipeline (#22029) 2023-04-04 10:39:40 +05:30
ClientSideTests chore: Add rapid mode to skip new app creation in cypress test (#22854) 2023-05-02 16:17:23 +05:30
EnterpriseTests/AdminSettings test: Cypress - fix for ExplorerTests/Admin_settings_spec.js (#22686) 2023-04-25 03:23:36 +05:30
ServerSideTests Fix stringified JSON response (#22450) (#22498) 2023-04-26 22:22:08 +05:30