Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"indexFields":[],"indicesExist":[],"rawResponse":{"timed_out":false,"took":-1,"_shards":{"total":-1,"successful":-1,"failed":-1,"skipped":-1},"hits":{"total":-1,"max_score":-1,"hits":[{"_index":"","_type":"","_id":"","_score":-1,"_source":null}]}}}
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,11 @@ import { expandHostStats, expandNetworkStats } from '../tasks/overview';
import { loginAndWaitForPage } from '../tasks/login';

import { OVERVIEW_URL } from '../urls/navigation';
import { esArchiverUnload, esArchiverLoad } from '../tasks/es_archiver';

describe.skip('Overview Page', () => {
before(() => {
describe('Overview Page', () => {
it('Host stats render with correct values', () => {
cy.stubSearchStrategyApi('overviewHostQuery', 'overview_search_strategy');
cy.stubSearchStrategyApi('overviewNetworkQuery', 'overview_search_strategy');
loginAndWaitForPage(OVERVIEW_URL);
});

it('Host stats render with correct values', () => {
expandHostStats();

HOST_STATS.forEach((stat) => {
Expand All @@ -28,21 +23,21 @@ describe.skip('Overview Page', () => {
});

it('Network stats render with correct values', () => {
cy.stubSearchStrategyApi('overviewNetworkQuery', 'overview_search_strategy');
loginAndWaitForPage(OVERVIEW_URL);
expandNetworkStats();

NETWORK_STATS.forEach((stat) => {
cy.get(stat.domId).invoke('text').should('eq', stat.value);
});
});

describe.skip('with no data', () => {
describe('with no data', () => {
before(() => {
esArchiverUnload('auditbeat');
cy.server();
cy.fixture('empty_instance').as('emptyInstance');
loginAndWaitForPage(OVERVIEW_URL);
});

after(() => {
esArchiverLoad('auditbeat');
cy.route('POST', '**/internal/search/securitySolutionIndexFields', '@emptyInstance');
});

it('Splash screen should be here', () => {
Expand Down