2023-05-19 18:37:06 +00:00
|
|
|
import { defineConfig } from "cypress";
|
2024-09-12 08:09:42 +00:00
|
|
|
import { addMatchImageSnapshotPlugin } from "@simonsmith/cypress-image-snapshot/plugin";
|
2023-05-19 18:37:06 +00:00
|
|
|
|
|
|
|
|
export default defineConfig({
|
2023-05-24 10:18:34 +00:00
|
|
|
watchForFileChanges: false,
|
2023-05-20 20:31:50 +00:00
|
|
|
defaultCommandTimeout: 30000,
|
2023-06-20 08:58:06 +00:00
|
|
|
requestTimeout: 60000,
|
2023-06-21 19:33:36 +00:00
|
|
|
responseTimeout: 60000,
|
2023-06-15 13:21:11 +00:00
|
|
|
pageLoadTimeout: 60000,
|
2023-09-27 17:24:27 +00:00
|
|
|
video: true,
|
2023-06-15 13:21:11 +00:00
|
|
|
numTestsKeptInMemory: 5,
|
2023-06-15 14:32:20 +00:00
|
|
|
experimentalMemoryManagement: true,
|
2023-05-19 18:37:06 +00:00
|
|
|
reporterOptions: {
|
|
|
|
|
reportDir: "results",
|
|
|
|
|
overwrite: false,
|
|
|
|
|
html: true,
|
|
|
|
|
json: false,
|
|
|
|
|
},
|
|
|
|
|
chromeWebSecurity: false,
|
2023-08-18 05:18:35 +00:00
|
|
|
viewportHeight: 1200,
|
2023-06-30 18:46:57 +00:00
|
|
|
viewportWidth: 1400,
|
2023-06-20 08:58:06 +00:00
|
|
|
scrollBehavior: "center",
|
2023-05-19 18:37:06 +00:00
|
|
|
retries: {
|
2024-08-16 13:31:28 +00:00
|
|
|
runMode: 0,
|
2023-05-19 18:37:06 +00:00
|
|
|
openMode: 0,
|
|
|
|
|
},
|
|
|
|
|
e2e: {
|
2023-05-20 20:31:50 +00:00
|
|
|
baseUrl: "https://dev.appsmith.com/",
|
2023-05-19 18:37:06 +00:00
|
|
|
env: {
|
2023-07-11 05:14:13 +00:00
|
|
|
USERNAME: "xxxx",
|
|
|
|
|
PASSWORD: "xxx",
|
2023-12-07 12:53:27 +00:00
|
|
|
grepFilterSpecs: true,
|
|
|
|
|
grepOmitFiltered: true,
|
2023-05-19 18:37:06 +00:00
|
|
|
},
|
2023-05-20 20:31:50 +00:00
|
|
|
setupNodeEvents(on, config) {
|
2024-09-12 08:09:42 +00:00
|
|
|
addMatchImageSnapshotPlugin(on);
|
2023-12-07 12:53:27 +00:00
|
|
|
require("@cypress/grep/src/plugin")(config);
|
|
|
|
|
require("./cypress/plugins/index.js")(on, config);
|
|
|
|
|
return config;
|
2023-05-20 20:31:50 +00:00
|
|
|
},
|
2023-05-19 18:37:06 +00:00
|
|
|
specPattern: "cypress/e2e/**/*.{js,ts}",
|
2023-06-15 13:21:11 +00:00
|
|
|
testIsolation: false,
|
2023-06-01 17:26:05 +00:00
|
|
|
excludeSpecPattern: "cypress/e2e/**/spec_utility.ts",
|
2023-05-19 18:37:06 +00:00
|
|
|
},
|
|
|
|
|
});
|