[EDR Workflows] Fix wrong endpoint link (#202434)

This commit is contained in:
Tomasz Ciecierski 2024-12-03 13:25:30 +01:00 committed by GitHub
parent 22911c1828
commit bcd442239f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -56,7 +56,7 @@ export const useEndpointActionItems = (
const endpointMetadata = endpointInfo.metadata;
const isIsolated = isEndpointHostIsolated(endpointMetadata);
const endpointId = endpointMetadata.agent.id;
const endpointHostName = endpointMetadata.host.hostname;
const endpointHostName = endpointMetadata.host.hostname.toLowerCase();
const fleetAgentId = endpointMetadata.elastic.agent.id;
const { show, selected_endpoint: _selectedEndpoint, ...currentUrlParams } = allCurrentUrlParams;
const endpointActionsPath = getEndpointDetailsPath({

View file

@ -1306,7 +1306,7 @@ describe('when on the endpoint list page', () => {
it('navigates to the Security Solution Host Details page', async () => {
const hostLink = await renderResult.findByTestId('hostLink');
expect(hostLink.getAttribute('href')).toEqual(
`${APP_PATH}/hosts/${hostInfo[0].metadata.host.hostname}`
`${APP_PATH}/hosts/${hostInfo[0].metadata.host.hostname.toLowerCase()}`
);
});
it('navigates to the correct Ingest Agent Policy page', async () => {