Skip to content

Commit

Permalink
fix cypress tests
Browse files Browse the repository at this point in the history
  • Loading branch information
parkiino committed Jul 8, 2020
1 parent cfeb658 commit ee0c117
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import {
CASES_URL,
HOSTS_URL,
KIBANA_HOME,
MANAGEMENT_URL,
ADMINISTRATION_URL,
NETWORK_URL,
OVERVIEW_URL,
TIMELINES_URL,
Expand All @@ -31,7 +31,7 @@ import {
ALERTS_PAGE,
CASES_PAGE,
HOSTS_PAGE,
MANAGEMENT_PAGE,
ADMINISTRATION_PAGE,
NETWORK_PAGE,
OVERVIEW_PAGE,
TIMELINES_PAGE,
Expand Down Expand Up @@ -72,9 +72,9 @@ describe('top-level navigation common to all pages in the Security app', () => {
cy.url().should('include', CASES_URL);
});

it('navigates to the Management page', () => {
it('navigates to the Administration page', () => {
navigateFromHeaderTo(MANAGEMENT);
cy.url().should('include', MANAGEMENT_URL);
cy.url().should('include', ADMINISTRATION_URL);
});
});

Expand Down Expand Up @@ -115,8 +115,8 @@ describe('Kibana navigation to all pages in the Security app ', () => {
cy.url().should('include', CASES_URL);
});

it('navigates to the Management page', () => {
navigateFromKibanaCollapsibleTo(MANAGEMENT_PAGE);
cy.url().should('include', MANAGEMENT_URL);
it('navigates to the Administration page', () => {
navigateFromKibanaCollapsibleTo(ADMINISTRATION_PAGE);
cy.url().should('include', ADMINISTRATION_URL);
});
});
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ export const HOSTS_PAGE = '[data-test-subj="collapsibleNavGroup-security"] [titl

export const KIBANA_NAVIGATION_TOGGLE = '[data-test-subj="toggleNavButton"]';

export const MANAGEMENT_PAGE =
'[data-test-subj="collapsibleNavGroup-security"] [title="Management"]';
export const ADMINISTRATION_PAGE =
'[data-test-subj="collapsibleNavGroup-security"] [title="Administration"]';

export const NETWORK_PAGE = '[data-test-subj="collapsibleNavGroup-security"] [title="Network"]';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export const HOSTS_PAGE_TAB_URLS = {
uncommonProcesses: '/app/security/hosts/uncommonProcesses',
};
export const KIBANA_HOME = '/app/home#/';
export const MANAGEMENT_URL = '/app/security/management';
export const ADMINISTRATION_URL = '/app/security/administration';
export const NETWORK_URL = '/app/security/network';
export const OVERVIEW_URL = '/app/security/overview';
export const TIMELINES_URL = '/app/security/timelines';

0 comments on commit ee0c117

Please sign in to comment.