PromucFlow_constructor/app/client/cypress/integration
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
..
Regression_TestSuite chore: Add rapid mode to skip new app creation in cypress test (#22854) 2023-05-02 16:17:23 +05:30
SanitySuite/Datasources fix: Google Sheets Scope Label Change (#22548) 2023-04-27 11:21:32 +05:30
SmokeSuite chore: Adds fix for flaky tests of reconnect datasources list. (#22545) 2023-04-19 23:46:31 +05:30