diff --git a/packages/driver/cypress.config-injectDocumentDomain.ts b/packages/driver/cypress.config-injectDocumentDomain.ts index 1fd081533f76..e2aa6cacada0 100644 --- a/packages/driver/cypress.config-injectDocumentDomain.ts +++ b/packages/driver/cypress.config-injectDocumentDomain.ts @@ -1,39 +1,12 @@ import { defineConfig } from 'cypress' +import { baseConfig } from './cypress.config' export default defineConfig({ - projectId: 'ypt4pf', - experimentalStudio: true, - experimentalMemoryManagement: true, - experimentalWebKitSupport: true, - hosts: { - 'foobar.com': '127.0.0.1', - '*.foobar.com': '127.0.0.1', - 'barbaz.com': '127.0.0.1', - '*.barbaz.com': '127.0.0.1', - '*.idp.com': '127.0.0.1', - 'localalias': '127.0.0.1', - }, - reporter: '../../node_modules/cypress-multi-reporters/index.js', - reporterOptions: { - configFile: '../../mocha-reporter-config.json', - }, + ...baseConfig, e2e: { + ...baseConfig.e2e, specPattern: '{cypress/**/origin/**/*.cy.{js,ts},cypress/**/cookies.cy.js,cypress/**/net_stubbing.cy.js}', injectDocumentDomain: true, - experimentalOriginDependencies: true, - experimentalModifyObstructiveThirdPartyCode: true, - setupNodeEvents: (on, config) => { - on('task', { - log (message) { - // eslint-disable-next-line no-console - console.log(message) - - return null - }, - }) - - return require('./cypress/plugins')(on, config) - }, - baseUrl: 'http://localhost:3500', }, + component: undefined, }) diff --git a/packages/driver/cypress.config.ts b/packages/driver/cypress.config.ts index 12f6a552ed72..cf9c0310fa90 100644 --- a/packages/driver/cypress.config.ts +++ b/packages/driver/cypress.config.ts @@ -1,7 +1,7 @@ import { defineConfig } from 'cypress' import { devServer as cypressWebpackDevServer } from '@cypress/webpack-dev-server' -export default defineConfig({ +export const baseConfig: Cypress.ConfigOptions = { projectId: 'ypt4pf', experimentalStudio: true, experimentalMemoryManagement: true, @@ -46,4 +46,6 @@ export default defineConfig({ }) }, }, -}) +} + +export default defineConfig(baseConfig)