mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
[EDR Workflows] Test metrics flakiness (#169527)
This commit is contained in:
parent
adf3b8b436
commit
320eff2870
1 changed files with 29 additions and 29 deletions
|
@ -11,52 +11,52 @@ import { loadSavedQuery, cleanupSavedQuery } from '../../tasks/api_fixtures';
|
|||
import { triggerLoadData } from '../../tasks/inventory';
|
||||
import { ServerlessRoleName } from '../../support/roles';
|
||||
|
||||
// FLAKY: https://github.com/elastic/kibana/issues/169369
|
||||
// FLAKY: https://github.com/elastic/kibana/issues/169370
|
||||
describe.skip('ALL - Inventory', { tags: ['@ess'] }, () => {
|
||||
describe('ALL - Inventory', { tags: ['@ess'] }, () => {
|
||||
let savedQueryName: string;
|
||||
let savedQueryId: string;
|
||||
|
||||
before(() => {
|
||||
beforeEach(() => {
|
||||
loadSavedQuery().then((data) => {
|
||||
savedQueryId = data.saved_object_id;
|
||||
savedQueryName = data.id;
|
||||
});
|
||||
});
|
||||
|
||||
beforeEach(() => {
|
||||
cy.login(ServerlessRoleName.SOC_MANAGER);
|
||||
navigateTo('/app/osquery');
|
||||
});
|
||||
|
||||
after(() => {
|
||||
afterEach(() => {
|
||||
cleanupSavedQuery(savedQueryId);
|
||||
});
|
||||
|
||||
it('should be able to run the query', () => {
|
||||
cy.getBySel('toggleNavButton').click();
|
||||
cy.contains('Infrastructure').click();
|
||||
describe('', () => {
|
||||
beforeEach(() => {
|
||||
cy.login(ServerlessRoleName.SOC_MANAGER);
|
||||
navigateTo('/app/osquery');
|
||||
});
|
||||
|
||||
triggerLoadData();
|
||||
cy.contains('Osquery').click();
|
||||
inputQuery('select * from uptime;');
|
||||
it('should be able to run the query', () => {
|
||||
cy.getBySel('toggleNavButton').click();
|
||||
cy.contains('Infrastructure').click();
|
||||
|
||||
submitQuery();
|
||||
checkResults();
|
||||
});
|
||||
triggerLoadData();
|
||||
cy.contains('Osquery').click();
|
||||
inputQuery('select * from uptime;');
|
||||
|
||||
it('should be able to run the previously saved query', () => {
|
||||
cy.getBySel('toggleNavButton').click();
|
||||
cy.getBySel('collapsibleNavAppLink').contains('Infrastructure').click();
|
||||
submitQuery();
|
||||
checkResults();
|
||||
});
|
||||
|
||||
triggerLoadData();
|
||||
cy.contains('Osquery').click();
|
||||
it('should be able to run the previously saved query', () => {
|
||||
cy.getBySel('toggleNavButton').click();
|
||||
cy.getBySel('collapsibleNavAppLink').contains('Infrastructure').click();
|
||||
|
||||
cy.getBySel('comboBoxInput').first().click();
|
||||
cy.wait(500);
|
||||
cy.getBySel('comboBoxInput').first().type(`${savedQueryName}{downArrow}{enter}`);
|
||||
triggerLoadData();
|
||||
cy.contains('Osquery').click();
|
||||
|
||||
submitQuery();
|
||||
checkResults();
|
||||
cy.getBySel('comboBoxInput').first().click();
|
||||
cy.wait(500);
|
||||
cy.getBySel('comboBoxInput').first().type(`${savedQueryName}{downArrow}{enter}`);
|
||||
|
||||
submitQuery();
|
||||
checkResults();
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue