Skip to content

Commit

Permalink
[Security Solution] Fixes problematic test (#170222)
Browse files Browse the repository at this point in the history
## Summary

After the merge of #169563 seems
that there is a test still using resetKibana (I don't know the reason).

In this PR we are fixing that.

Execution in ESS:

<img width="2560" alt="Screenshot 2023-10-31 at 12 46 55"
src="https://github.com/elastic/kibana/assets/17427073/dc14eb9a-9ef5-4c35-be83-9f76d9812f8e">

Execution in Serverless:

<img width="2552" alt="Screenshot 2023-10-31 at 12 49 14"
src="https://github.com/elastic/kibana/assets/17427073/28594862-1c0d-40f5-9b9e-dfe7f97584cc">
  • Loading branch information
MadameSheema authored Oct 31, 2023
1 parent 41be61a commit d26b373
Showing 1 changed file with 0 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,18 +25,11 @@ import { waitForAllHostsToBeLoaded } from '../../tasks/hosts/all_hosts';

describe('SearchBar', { tags: ['@ess', '@serverless'] }, () => {
beforeEach(() => {
cy.task('esArchiverResetKibana');
cy.task('esArchiverLoad', { archiveName: 'auditbeat' });

login();
visitWithTimeRange(hostsUrl('allHosts'));
waitForAllHostsToBeLoaded();
});

afterEach(() => {
cy.task('esArchiverUnload', 'auditbeat');
});

it('adds correctly a filter to the global search bar', () => {
openAddFilterPopover();
fillAddFilterForm(getHostIpFilter());
Expand Down

0 comments on commit d26b373

Please sign in to comment.