Skip to content

Commit

Permalink
[CI] Auto-commit changed files from 'node scripts/eslint --no-cache -…
Browse files Browse the repository at this point in the history
…-fix'
  • Loading branch information
kibanamachine committed Sep 5, 2023
1 parent e9b8490 commit 5f89692
Showing 1 changed file with 51 additions and 47 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,61 +30,65 @@ import { HOSTS_URL } from '../../../urls/navigation';
import { cleanKibana, scrollToBottom } from '../../../tasks/common';

// Failing in serverless
describe('timeline data providers', { tags: ['@ess', '@serverless', '@brokenInServerless'] }, () => {
before(() => {
cleanKibana();
});
describe(
'timeline data providers',
{ tags: ['@ess', '@serverless', '@brokenInServerless'] },
() => {
before(() => {
cleanKibana();
});

beforeEach(() => {
login();
visit(HOSTS_URL);
waitForAllHostsToBeLoaded();
scrollToBottom();
createNewTimeline();
addNameAndDescriptionToTimeline(getTimeline());
populateTimeline();
});
beforeEach(() => {
login();
visit(HOSTS_URL);
waitForAllHostsToBeLoaded();
scrollToBottom();
createNewTimeline();
addNameAndDescriptionToTimeline(getTimeline());
populateTimeline();
});

it('displays the data provider action menu when Enter is pressed', () => {
addDataProvider({ field: 'host.name', operator: 'exists' });
it('displays the data provider action menu when Enter is pressed', () => {
addDataProvider({ field: 'host.name', operator: 'exists' });

cy.get(TIMELINE_DATA_PROVIDERS_ACTION_MENU).should('not.exist');
cy.get(`${TIMELINE_FLYOUT_HEADER} ${TIMELINE_DROPPED_DATA_PROVIDERS}`).focus();
cy.get(`${TIMELINE_FLYOUT_HEADER} ${TIMELINE_DROPPED_DATA_PROVIDERS}`)
.first()
.parent()
.type('{enter}');
cy.get(TIMELINE_DATA_PROVIDERS_ACTION_MENU).should('not.exist');
cy.get(`${TIMELINE_FLYOUT_HEADER} ${TIMELINE_DROPPED_DATA_PROVIDERS}`).focus();
cy.get(`${TIMELINE_FLYOUT_HEADER} ${TIMELINE_DROPPED_DATA_PROVIDERS}`)
.first()
.parent()
.type('{enter}');

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

cy.get(TIMELINE_DATA_PROVIDERS_ACTION_MENU).should('exist');
});
it.skip(
'persists timeline when data provider is updated by dragging a field from data grid',
{ tags: ['@brokenInServerless'] },
() => {
updateDataProviderbyDraggingField('host.name', 0);
waitForTimelineChanges();
cy.reload();
cy.get(`${GET_TIMELINE_GRID_CELL('host.name')}`)
.first()
.then((hostname) => {
cy.get(TIMELINE_DATA_PROVIDERS_CONTAINER).contains(`host.name: "${hostname.text()}"`);
});
}
);

it.skip(
'persists timeline when data provider is updated by dragging a field from data grid',
{ tags: ['@brokenInServerless'] },
() => {
updateDataProviderbyDraggingField('host.name', 0);
it('persists timeline when a field is added by hover action "Add To Timeline" in data provider ', () => {
addDataProvider({ field: 'host.name', operator: 'exists' });
waitForTimelineChanges();
updateDataProviderByFieldHoverAction('host.name', 0);
waitForTimelineChanges();
cy.reload();
cy.get(`${GET_TIMELINE_GRID_CELL('host.name')}`)
.first()
.then((hostname) => {
cy.get(TIMELINE_DATA_PROVIDERS_CONTAINER).contains(`host.name: "${hostname.text()}"`);
});
}
);

it('persists timeline when a field is added by hover action "Add To Timeline" in data provider ', () => {
addDataProvider({ field: 'host.name', operator: 'exists' });
waitForTimelineChanges();
updateDataProviderByFieldHoverAction('host.name', 0);
waitForTimelineChanges();
cy.reload();
cy.get(`${GET_TIMELINE_GRID_CELL('host.name')}`)
.first()
.then((hostname) => {
cy.get(TIMELINE_DATA_PROVIDERS_CONTAINER).should((dataProviderContainer) => {
expect(dataProviderContainer).to.contain(`host.name: "${hostname.text()}"`);
cy.get(TIMELINE_DATA_PROVIDERS_CONTAINER).should((dataProviderContainer) => {
expect(dataProviderContainer).to.contain(`host.name: "${hostname.text()}"`);
});
});
});
});
});
});
}
);

0 comments on commit 5f89692

Please sign in to comment.