PromucFlow_constructor/app/client/cypress
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
..
fixtures test: Generic test for All widgets wrt autolayout (#22461) 2023-05-01 21:07:43 +05:30
integration chore: Add rapid mode to skip new app creation in cypress test (#22854) 2023-05-02 16:17:23 +05:30
locators feat: signposting stickiness (#22088) 2023-05-02 15:22:05 +05:30
manual_TestSuite test: Disable the gsheet test (#22111) 2023-04-05 14:34:24 +05:30
patches
plugins
snapshots/Smoke_TestSuite/ClientSideTests/VisualTests feat: Auto indent and save code on pressing Ctrl/Cmd + S (#22176) 2023-04-16 18:21:32 +05:30
support chore: Add rapid mode to skip new app creation in cypress test (#22854) 2023-05-02 16:17:23 +05:30
.eslintrc.json chore: improve husky and lint-staged checks (#21679) 2023-03-23 17:02:18 +05:30
apply-patches.js ci: CI optimisation to reduce ci-test run time and modularise docker image building (#21219) 2023-03-10 12:51:32 +05:30
cypress-docker-compose.yml ci: Add lint check to the build step (#21442) 2023-03-20 22:50:44 +05:30
index.ts
init-mssql-dump-for-test.sql test: Cypress - Automated basic tests for MsSQL DS (#21446) 2023-03-16 23:58:32 +05:30
init-mysql-dump-for-test.sql
init-pg-dump-for-test.sql
package.json feat: Add support for tab in autocompletion (#22653) 2023-04-28 15:32:40 +05:30
setup-test-ci.sh ci: run fat container docker inside perf tests and update setup-perf-test workflow to use localhost for accessing dev environment (#20280) 2023-02-07 15:56:41 +05:30
setup-test.sh test: Cypress migration to TED GITEA (#18799) 2023-02-15 01:12:45 +05:30
test.sh test: Moving specs to run on FatContainer + Gitea migration (#18920) 2023-01-25 11:09:02 +05:30
tsconfig.json ci: Add lint check to the build step (#21442) 2023-03-20 22:50:44 +05:30
xataadd.sh ci: Comment failing tests to PR (#18450) 2022-12-19 16:23:39 +05:30
xatadel.sh ci: Comment failing tests to PR (#18450) 2022-12-19 16:23:39 +05:30