PromucFlow_constructor/app/client/cypress.config.ts
Aishwarya-U-R 6651475313
test: Cypress | Flaky fixes (#24593)
## Description
- This PR fixes below flaky tests:
  - AppNavigation/NavigationSettings_spec.js
  - Autocomplete/JS_AC_spec.ts - 6th case
  - Analytics_spec.js - increased restart time
- Apps/ReconnectDatasource_spec.js - Increasing timeout for better pass
rate
  - TableV2/Inline_editing_spec.js - trial fix
  - OneClickBinding/mongoDB_spec.ts
  - OneClickBinding/postgres_spec.ts
  - ScrollIntoView() fixes
  - /OtherUIFeatures/ViewMode_spec.js - flaky fix
  - TableV2/TableV2_PropertyPane_spec.js
  - OtherUIFeatures/UpdateApplication_spec.js
  - ListV2/Childwigets/List_FilePicker_spec.js

#### Type of change
- Script fix (non-breaking change which fixes an issue)

## Testing
>
#### How Has This Been Tested?
- [X] Cypress CI runs

## Checklist:
#### QA activity:
- [X] Added `Test Plan Approved` label after changes were reviewed
2023-06-20 14:28:06 +05:30

41 lines
952 B
TypeScript

import { defineConfig } from "cypress";
export default defineConfig({
watchForFileChanges: false,
defaultCommandTimeout: 30000,
requestTimeout: 60000,
responseTimeout: 30000,
pageLoadTimeout: 60000,
videoUploadOnPasses: false,
videoCompression: false,
numTestsKeptInMemory: 5,
experimentalMemoryManagement: true,
reporterOptions: {
reportDir: "results",
overwrite: false,
html: true,
json: false,
},
chromeWebSecurity: false,
viewportHeight: 1200,
viewportWidth: 1600,
scrollBehavior: "center",
retries: {
runMode: 1,
openMode: 0,
},
e2e: {
baseUrl: "https://dev.appsmith.com/",
env: {
USERNAME: "xxxx",
PASSWORD: "xxx",
},
setupNodeEvents(on, config) {
return require("./cypress/plugins/index.js")(on, config);
},
specPattern: "cypress/e2e/**/*.{js,ts}",
testIsolation: false,
excludeSpecPattern: "cypress/e2e/**/spec_utility.ts",
},
});