[Security Solution] Loading auditbeat data in a global hook (#165953)

This commit is contained in:
Gloria Hornero 2023-09-08 10:52:16 +02:00 committed by GitHub
parent 234c46d5b7
commit 2ecd8b83fa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 3 deletions

View file

@ -25,6 +25,10 @@ import './commands';
import 'cypress-real-events/support';
import registerCypressGrep from '@cypress/grep';
before(() => {
cy.task('esArchiverLoad', { archiveName: 'auditbeat' });
});
registerCypressGrep();
Cypress.on('uncaught:exception', () => {

View file

@ -15,9 +15,6 @@ export async function SecuritySolutionConfigurableCypressTestRunner({
getService,
}: FtrProviderContext) {
const config = getService('config');
const esArchiver = getService('esArchiver');
await esArchiver.load('x-pack/test/security_solution_cypress/es_archives/auditbeat');
return {
FORCE_COLOR: '1',