Skip to content

Commit

Permalink
fixes failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
MadameSheema committed Dec 9, 2020
1 parent e67eaab commit b5dc0b2
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ import { TABLE_COLUMN_EVENTS_MESSAGE } from '../screens/hosts/external_events';
import { waitsForEventsToBeLoaded, openEventsViewerFieldsBrowser } from '../tasks/hosts/events';
import { removeColumn, resetFields } from '../tasks/timeline';

describe('persistent timeline', () => {
// Failing: See https://github.com/elastic/kibana/issues/75794
describe.skip('persistent timeline', () => {
before(() => {
loginAndWaitForPage(HOSTS_URL);
openEvents();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,15 @@
* you may not use this file except in compliance with the Elastic License.
*/

import { timeline } from '../objects/timeline';
import {
ID_HEADER_FIELD,
ID_TOGGLE_FIELD,
TIMESTAMP_HEADER_FIELD,
TIMESTAMP_TOGGLE_FIELD,
} from '../screens/timeline';
import { createTimeline, deleteTimeline } from '../tasks/api_calls/timelines';

import { esArchiverLoad, esArchiverUnload } from '../tasks/es_archiver';
import { loginAndWaitForPage } from '../tasks/login';
import { openTimelineUsingToggle } from '../tasks/security_main';
import {
Expand All @@ -27,13 +28,17 @@ import {
import { HOSTS_URL } from '../urls/navigation';

describe('toggle column in timeline', () => {
let timelineId: string;
before(() => {
esArchiverLoad('timeline');
loginAndWaitForPage(HOSTS_URL);
cy.intercept('POST', '/api/timeline/_export?file_name=timelines_export.ndjson').as('export');
createTimeline(timeline).then((response) => {
timelineId = response.body.data.persistTimeline.timeline.savedObjectId;
loginAndWaitForPage(HOSTS_URL);
});
});

after(() => {
esArchiverUnload('timeline');
deleteTimeline(timelineId);
});

beforeEach(() => {
Expand Down

0 comments on commit b5dc0b2

Please sign in to comment.