Skip to content

Commit

Permalink
fix(NA): eslint check
Browse files Browse the repository at this point in the history
  • Loading branch information
mistic committed Sep 5, 2023
1 parent b39fc45 commit a9c3ca5
Showing 1 changed file with 31 additions and 27 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,30 +19,34 @@ import {

import { HOSTS_URL } from '../../../urls/navigation';

describe('toggle column in timeline', { tags: ['@ess', '@serverless', '@brokenInServerless'] }, () => {
before(() => {
cleanKibana();
cy.intercept('POST', '/api/timeline/_export?file_name=timelines_export.ndjson').as('export');
});

beforeEach(() => {
login();
visit(HOSTS_URL);
openTimelineUsingToggle();
populateTimeline();
});

it('removes the @timestamp field from the timeline when the user un-checks the toggle', () => {
expandFirstTimelineEventDetails();
clickTimestampToggleField();

cy.get(TIMESTAMP_HEADER_FIELD).should('not.exist');
});

it('adds the _id field to the timeline when the user checks the field', () => {
expandFirstTimelineEventDetails();
clickIdToggleField();

cy.get(ID_HEADER_FIELD).should('exist');
});
});
describe(
'toggle column in timeline',
{ tags: ['@ess', '@serverless', '@brokenInServerless'] },
() => {
before(() => {
cleanKibana();
cy.intercept('POST', '/api/timeline/_export?file_name=timelines_export.ndjson').as('export');
});

beforeEach(() => {
login();
visit(HOSTS_URL);
openTimelineUsingToggle();
populateTimeline();
});

it('removes the @timestamp field from the timeline when the user un-checks the toggle', () => {
expandFirstTimelineEventDetails();
clickTimestampToggleField();

cy.get(TIMESTAMP_HEADER_FIELD).should('not.exist');
});

it('adds the _id field to the timeline when the user checks the field', () => {
expandFirstTimelineEventDetails();
clickIdToggleField();

cy.get(ID_HEADER_FIELD).should('exist');
});
}
);

0 comments on commit a9c3ca5

Please sign in to comment.