Skip to content

Commit

Permalink
completes navigation test
Browse files Browse the repository at this point in the history
  • Loading branch information
MadameSheema committed Mar 3, 2020
1 parent bfca202 commit e57ee64
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* or more contributor license agreements. Licensed under the Elastic License;
* you may not use this file except in compliance with the Elastic License.
*/
import { HOSTS, NETWORK, OVERVIEW, TIMELINES } from '../screens/siem_header';
import { DETECTIONS, HOSTS, NETWORK, OVERVIEW, TIMELINES } from '../screens/siem_header';

import { loginAndWaitForPage } from '../tasks/login';
import { navigateFromHeaderTo } from '../tasks/siem_header';
Expand All @@ -29,6 +29,11 @@ describe('top-level navigation common to all pages in the SIEM app', () => {
cy.url().should('include', '/siem#/network');
});

it('navigates to the Detections page', () => {
navigateFromHeaderTo(DETECTIONS);
cy.url().should('include', '/siem#/detections');
});

it('navigates to the Timelines page', () => {
navigateFromHeaderTo(TIMELINES);
cy.url().should('include', '/siem#/timelines');
Expand Down
2 changes: 2 additions & 0 deletions x-pack/legacy/plugins/siem/cypress/screens/siem_header.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@

export const BREADCRUMBS = '[data-test-subj="breadcrumbs"] a';

export const DETECTIONS = '[data-test-subj="navigation-detections"]';

export const HOSTS = '[data-test-subj="navigation-hosts"]';

export const KQL_INPUT = '[data-test-subj="queryInput"]';
Expand Down

0 comments on commit e57ee64

Please sign in to comment.