Skip to content

Commit

Permalink
fixes overview tests
Browse files Browse the repository at this point in the history
  • Loading branch information
MadameSheema committed Nov 3, 2020
1 parent e425cbc commit e52f7fe
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,9 @@ import { OVERVIEW_URL } from '../urls/navigation';
import { esArchiverUnload, esArchiverLoad } from '../tasks/es_archiver';

describe('Overview Page', () => {
before(() => {
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,6 +24,8 @@ describe('Overview Page', () => {
});

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

NETWORK_STATS.forEach((stat) => {
Expand Down

0 comments on commit e52f7fe

Please sign in to comment.