PromucFlow_constructor/app/client/cypress/support
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
..
Objects feat: signposting stickiness (#22088) 2023-05-02 15:22:05 +05:30
Pages feat: signposting stickiness (#22088) 2023-05-02 15:22:05 +05:30
AdminSettingsCommands.js fix: Adding a fix for copy clipboard URL not working on HTTP domain (#21313) 2023-03-14 11:41:52 +05:30
ApiCommands.js feat: Action selector (#21582) 2023-04-06 22:19:12 +05:30
commands.js chore: Add rapid mode to skip new app creation in cypress test (#22854) 2023-05-02 16:17:23 +05:30
Constants.js fix: column dragging and column reordering (#20928) 2023-03-05 19:49:44 +05:30
dataSourceCommands.js feat: Error Navigation (#21753) 2023-04-10 18:29:14 +05:30
gitSync.js 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
index.js chore: Add rapid mode to skip new app creation in cypress test (#22854) 2023-05-02 16:17:23 +05:30
queryCommands.js feat: Action selector (#21582) 2023-04-06 22:19:12 +05:30
themeCommands.js 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
timeout.js fix: Text getting clipped for Italic font in Table Widget V1 (#15549) 2022-08-16 11:12:31 +05:30
widgetCommands.js fix: Sorting by renamed custom column (#22405) 2023-04-20 12:11:38 +05:30
WorkspaceCommands.js feat: signposting stickiness (#22088) 2023-05-02 15:22:05 +05:30