Skip to content

Commit

Permalink
[SIEM] Improves toggle column Cypress tests execution time (#54475)
Browse files Browse the repository at this point in the history
* refactor

* replaces 'clearTimeline' for 'createNewTimeline'

* fixes typecheck issue

Co-authored-by: Elastic Machine <[email protected]>
  • Loading branch information
MadameSheema and elasticmachine authored Jan 16, 2020
1 parent 6d3c284 commit 8a07023
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,19 @@

import { drag, drop } from '../../lib/drag_n_drop/helpers';
import { populateTimeline } from '../../lib/fields_browser/helpers';
import { toggleFirstTimelineEventDetails } from '../../lib/timeline/helpers';
import { createNewTimeline, toggleFirstTimelineEventDetails } from '../../lib/timeline/helpers';
import { HOSTS_PAGE } from '../../lib/urls';
import { loginAndWaitForPage, DEFAULT_TIMEOUT } from '../../lib/util/helpers';

describe('toggle column in timeline', () => {
beforeEach(() => {
before(() => {
loginAndWaitForPage(HOSTS_PAGE);
});

afterEach(() => {
createNewTimeline();
});

const timestampField = '@timestamp';
const idField = '_id';

Expand Down

0 comments on commit 8a07023

Please sign in to comment.