[SIEM] Improves toggle column Cypress tests execution time (#54475)

* refactor

* replaces 'clearTimeline' for 'createNewTimeline'

* fixes typecheck issue

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
This commit is contained in:
MadameSheema 2020-01-16 12:31:46 +01:00 committed by GitHub
parent 6d3c284d11
commit 8a07023343
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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';