[EDR Workflows] FIX Cypress DW not creating Fleet server (#167378)

We realized that our 'real agent' tests in DW Cypress do not run
locally, because FS is not being created (normally created in a
before:run task).
The `before:run` task in cypress was not run.
According to the
[docs](https://docs.cypress.io/api/plugins/before-run-api), it requires
an experimental flag `experimentalInteractiveRunEvents` enabled and it
was removed in
[here](https://github.com/elastic/kibana/pull/166757/files#diff-c2e90a076b73f17a80dcb5bfaf96f143d4d0de4dfaa68f5085608621a86c612dL33)
This commit is contained in:
Tomasz Ciecierski 2023-09-28 15:06:58 +02:00 committed by GitHub
parent 833c075362
commit 1f593f4c96
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -59,6 +59,8 @@ export const getCypressBaseConfig = (
supportFile: 'public/management/cypress/support/e2e.ts',
specPattern: 'public/management/cypress/e2e/**/*.cy.{js,jsx,ts,tsx}',
experimentalRunAllSpecs: true,
experimentalMemoryManagement: true,
experimentalInteractiveRunEvents: true,
setupNodeEvents: (on: Cypress.PluginEvents, config: Cypress.PluginConfigOptions) => {
dataLoaders(on, config);