Skip to content

Commit cbc1c7d

Browse files
authored
fixes inspect tests (#50510)
1 parent 62d0353 commit cbc1c7d

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

x-pack/legacy/plugins/siem/cypress/integration/lib/inspect/selectors.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* you may not use this file except in compliance with the Elastic License.
55
*/
66

7-
import { HOSTS_PAGE, HOSTS_PAGE_TAB_URLS, NETWORK_PAGE } from '../urls';
7+
import { HOSTS_PAGE, HOSTS_PAGE_TAB_URLS, NETWORK_PAGE, NETWORK_TAB_URLS } from '../urls';
88

99
export const INSPECT_BUTTON_ICON = '[data-test-subj="inspect-icon-button"]';
1010
export const INSPECT_MODAL = '[data-test-subj="modal-inspect-euiModal"]';
@@ -72,7 +72,7 @@ export const INSPECT_BUTTONS_IN_SIEM: InspectButtonMetadata[] = [
7272
{
7373
id: '[data-test-subj="table-dns-loading-false"]',
7474
title: 'Top DNS Domains Table',
75-
url: NETWORK_PAGE,
75+
url: NETWORK_TAB_URLS.dns,
7676
},
7777
{
7878
id: '[data-test-subj="table-allHosts-loading-false"]',
@@ -90,7 +90,7 @@ export const INSPECT_BUTTONS_IN_SIEM: InspectButtonMetadata[] = [
9090
url: HOSTS_PAGE_TAB_URLS.uncommonProcesses,
9191
},
9292
{
93-
altInspectId: `[data-test-subj="events-viewer-header"] ${INSPECT_BUTTON_ICON}`,
93+
altInspectId: `[data-test-subj="events-viewer-panel"] ${INSPECT_BUTTON_ICON}`,
9494
id: '[data-test-subj="events-container-loading-false"]',
9595
title: 'Events Table',
9696
url: HOSTS_PAGE_TAB_URLS.events,

x-pack/legacy/plugins/siem/cypress/integration/lib/urls/index.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ export const LOGIN_PAGE = '/login';
1919

2020
/** The SIEM app's Network page */
2121
export const NETWORK_PAGE = '/app/siem#/network';
22+
export const NETWORK_TAB_URLS = {
23+
dns: `${NETWORK_PAGE}/dns`,
24+
};
2225

2326
/** The SIEM app's Overview page */
2427
export const OVERVIEW_PAGE = '/app/siem#/overview';

0 commit comments

Comments
 (0)