Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
parkiino committed Jul 9, 2020
1 parent 4df5aa7 commit 1f6bdae
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
CASES,
DETECTIONS,
HOSTS,
MANAGEMENT,
ADMINISTRATION,
NETWORK,
OVERVIEW,
TIMELINES,
Expand Down Expand Up @@ -73,7 +73,7 @@ describe('top-level navigation common to all pages in the Security app', () => {
});

it('navigates to the Administration page', () => {
navigateFromHeaderTo(MANAGEMENT);
navigateFromHeaderTo(ADMINISTRATION);
cy.url().should('include', ADMINISTRATION_URL);
});
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export const HOSTS = '[data-test-subj="navigation-hosts"]';

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

export const MANAGEMENT = '[data-test-subj="navigation-management"]';
export const ADMINISTRATION = '[data-test-subj="navigation-administration"]';

export const NETWORK = '[data-test-subj="navigation-network"]';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,12 +106,12 @@ describe('SIEM Navigation', () => {
name: 'Cases',
urlKey: 'case',
},
management: {
administration: {
disabled: false,
href: '/app/security/administration',
id: 'management',
id: 'administration',
name: 'Administration',
urlKey: 'management',
urlKey: 'administration',
},
hosts: {
disabled: false,
Expand Down Expand Up @@ -218,12 +218,12 @@ describe('SIEM Navigation', () => {
name: 'Hosts',
urlKey: 'host',
},
management: {
administration: {
disabled: false,
href: '/app/security/administration',
id: 'management',
id: 'administration',
name: 'Administration',
urlKey: 'management',
urlKey: 'administration',
},
network: {
disabled: false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ describe('Policy Details', () => {
cancelbutton.simulate('click', { button: 0 });
const navigateToAppMockedCalls = coreStart.application.navigateToApp.mock.calls;
expect(navigateToAppMockedCalls[navigateToAppMockedCalls.length - 1]).toEqual([
'securitySolution:management',
'securitySolution:administration',
{ path: policyListPathUrl },
]);
});
Expand Down

0 comments on commit 1f6bdae

Please sign in to comment.