All Downloads are FREE. Search and download functionalities are using the official Maven repository.

package.cjs.cypress-configs.initializer.js Maven / Gradle / Ivy

Go to download

A package encapsulating common code across neeto projects including initializers, utility functions, common components and hooks and so on.

There is a newer version: 4.12.3
Show newest version
const { defineConfig } = require("cypress");

const defineCypressConfig = (overrides = {}) => {
  const { e2e: e2eOverrides = {}, ...otherProps } = overrides;

  return defineConfig({
    execTimeout: 1800000,
    defaultCommandTimeout: 12000,
    requestTimeout: 15000,
    pageLoadTimeout: 60000,
    responseTimeout: 45000,
    viewportWidth: 1440,
    viewportHeight: 960,
    chromeWebSecurity: false,
    env: { grepFilterSpecs: true, grepOmitFiltered: true },
    retries: { runMode: 1, openMode: 0 },
    e2e: {
      setupNodeEvents(on, config) {
        return require("./plugins")(on, config);
      },
      specPattern: "cypress/e2e/**/*.spec.js",
      excludeSpecPattern: ["cypress/e2e/**/*.wip.spec.js"],
      experimentalRunAllSpecs: true,
      testIsolation: true,
      experimentalMemoryManagement: true,
      ...e2eOverrides,
    },
    ...otherProps,
  });
};

module.exports = { defineCypressConfig };




© 2015 - 2024 Weber Informatics LLC | Privacy Policy