From db8744ca1f80b6e213ba97f424caf5e583b15a25 Mon Sep 17 00:00:00 2001 From: Ian Yenien Serrano Date: Tue, 6 Feb 2024 11:39:20 +0100 Subject: [PATCH] Fix test and update snapshots --- .../__snapshots__/get_logos.test.ts.snap | 72 ++-- .../collapsible_nav.test.tsx.snap | 402 +++++++++--------- .../header/__snapshots__/header.test.tsx.snap | 280 ++++++------ .../__snapshots__/header_logo.test.tsx.snap | 4 +- .../chrome/ui/header/collapsible_nav.test.tsx | 23 +- .../__snapshots__/template.test.tsx.snap | 16 +- 6 files changed, 401 insertions(+), 396 deletions(-) diff --git a/src/core/common/logos/__snapshots__/get_logos.test.ts.snap b/src/core/common/logos/__snapshots__/get_logos.test.ts.snap index cfd1b9f7e3cf..c1abadf17f2e 100644 --- a/src/core/common/logos/__snapshots__/get_logos.test.ts.snap +++ b/src/core/common/logos/__snapshots__/get_logos.test.ts.snap @@ -518,29 +518,29 @@ AnimatedMark.light.url = "/mocked/base/path/ui/logos/spinner_on_light.gif" AnimatedMark.type = "default" AnimatedMark.url = "/mocked/base/path/ui/logos/spinner_on_light.gif" Application.dark.type = "default" -Application.dark.url = "/mocked/base/path/ui/logos/opensearch_dashboards_on_dark.svg" +Application.dark.url = "/mocked/base/path/ui/logos/wazuh_dashboards_on_dark.svg" Application.light.type = "default" -Application.light.url = "/mocked/base/path/ui/logos/opensearch_dashboards_on_light.svg" +Application.light.url = "/mocked/base/path/ui/logos/wazuh_dashboards_on_light.svg" Application.type = "default" -Application.url = "/mocked/base/path/ui/logos/opensearch_dashboards_on_light.svg" +Application.url = "/mocked/base/path/ui/logos/wazuh_dashboards_on_light.svg" CenterMark.dark.type = "default" -CenterMark.dark.url = "/mocked/base/path/ui/logos/opensearch_center_mark_on_dark.svg" +CenterMark.dark.url = "/mocked/base/path/ui/logos/wazuh_center_mark_on_dark.svg" CenterMark.light.type = "default" -CenterMark.light.url = "/mocked/base/path/ui/logos/opensearch_center_mark_on_light.svg" +CenterMark.light.url = "/mocked/base/path/ui/logos/wazuh_center_mark_on_light.svg" CenterMark.type = "default" -CenterMark.url = "/mocked/base/path/ui/logos/opensearch_center_mark_on_light.svg" +CenterMark.url = "/mocked/base/path/ui/logos/wazuh_center_mark_on_light.svg" Mark.dark.type = "default" -Mark.dark.url = "/mocked/base/path/ui/logos/opensearch_mark_on_dark.svg" +Mark.dark.url = "/mocked/base/path/ui/logos/wazuh_mark_on_dark.svg" Mark.light.type = "default" -Mark.light.url = "/mocked/base/path/ui/logos/opensearch_mark_on_light.svg" +Mark.light.url = "/mocked/base/path/ui/logos/wazuh_mark_on_light.svg" Mark.type = "default" -Mark.url = "/mocked/base/path/ui/logos/opensearch_mark_on_light.svg" +Mark.url = "/mocked/base/path/ui/logos/wazuh_mark_on_light.svg" OpenSearch.dark.type = "default" -OpenSearch.dark.url = "/mocked/base/path/ui/logos/opensearch_on_dark.svg" +OpenSearch.dark.url = "/mocked/base/path/ui/logos/wazuh_on_dark.svg" OpenSearch.light.type = "default" -OpenSearch.light.url = "/mocked/base/path/ui/logos/opensearch_on_light.svg" +OpenSearch.light.url = "/mocked/base/path/ui/logos/wazuh_on_light.svg" OpenSearch.type = "default" -OpenSearch.url = "/mocked/base/path/ui/logos/opensearch_on_light.svg" +OpenSearch.url = "/mocked/base/path/ui/logos/wazuh_on_light.svg" colorScheme = "light" `; @@ -552,29 +552,29 @@ AnimatedMark.light.url = "/mocked/base/path/ui/logos/spinner_on_light.gif" AnimatedMark.type = "default" AnimatedMark.url = "/mocked/base/path/ui/logos/spinner_on_dark.gif" Application.dark.type = "default" -Application.dark.url = "/mocked/base/path/ui/logos/opensearch_dashboards_on_dark.svg" +Application.dark.url = "/mocked/base/path/ui/logos/wazuh_dashboards_on_dark.svg" Application.light.type = "default" -Application.light.url = "/mocked/base/path/ui/logos/opensearch_dashboards_on_light.svg" +Application.light.url = "/mocked/base/path/ui/logos/wazuh_dashboards_on_light.svg" Application.type = "default" -Application.url = "/mocked/base/path/ui/logos/opensearch_dashboards_on_dark.svg" +Application.url = "/mocked/base/path/ui/logos/wazuh_dashboards_on_dark.svg" CenterMark.dark.type = "default" -CenterMark.dark.url = "/mocked/base/path/ui/logos/opensearch_center_mark_on_dark.svg" +CenterMark.dark.url = "/mocked/base/path/ui/logos/wazuh_center_mark_on_dark.svg" CenterMark.light.type = "default" -CenterMark.light.url = "/mocked/base/path/ui/logos/opensearch_center_mark_on_light.svg" +CenterMark.light.url = "/mocked/base/path/ui/logos/wazuh_center_mark_on_light.svg" CenterMark.type = "default" -CenterMark.url = "/mocked/base/path/ui/logos/opensearch_center_mark_on_dark.svg" +CenterMark.url = "/mocked/base/path/ui/logos/wazuh_center_mark_on_dark.svg" Mark.dark.type = "default" -Mark.dark.url = "/mocked/base/path/ui/logos/opensearch_mark_on_dark.svg" +Mark.dark.url = "/mocked/base/path/ui/logos/wazuh_mark_on_dark.svg" Mark.light.type = "default" -Mark.light.url = "/mocked/base/path/ui/logos/opensearch_mark_on_light.svg" +Mark.light.url = "/mocked/base/path/ui/logos/wazuh_mark_on_light.svg" Mark.type = "default" -Mark.url = "/mocked/base/path/ui/logos/opensearch_mark_on_dark.svg" +Mark.url = "/mocked/base/path/ui/logos/wazuh_mark_on_dark.svg" OpenSearch.dark.type = "default" -OpenSearch.dark.url = "/mocked/base/path/ui/logos/opensearch_on_dark.svg" +OpenSearch.dark.url = "/mocked/base/path/ui/logos/wazuh_on_dark.svg" OpenSearch.light.type = "default" -OpenSearch.light.url = "/mocked/base/path/ui/logos/opensearch_on_light.svg" +OpenSearch.light.url = "/mocked/base/path/ui/logos/wazuh_on_light.svg" OpenSearch.type = "default" -OpenSearch.url = "/mocked/base/path/ui/logos/opensearch_on_dark.svg" +OpenSearch.url = "/mocked/base/path/ui/logos/wazuh_on_dark.svg" colorScheme = "dark" `; @@ -586,28 +586,28 @@ AnimatedMark.light.url = "/mocked/base/path/ui/logos/spinner_on_light.gif" AnimatedMark.type = "default" AnimatedMark.url = "/mocked/base/path/ui/logos/spinner_on_light.gif" Application.dark.type = "default" -Application.dark.url = "/mocked/base/path/ui/logos/opensearch_dashboards_on_dark.svg" +Application.dark.url = "/mocked/base/path/ui/logos/wazuh_dashboards_on_dark.svg" Application.light.type = "default" -Application.light.url = "/mocked/base/path/ui/logos/opensearch_dashboards_on_light.svg" +Application.light.url = "/mocked/base/path/ui/logos/wazuh_dashboards_on_light.svg" Application.type = "default" -Application.url = "/mocked/base/path/ui/logos/opensearch_dashboards_on_light.svg" +Application.url = "/mocked/base/path/ui/logos/wazuh_dashboards_on_light.svg" CenterMark.dark.type = "default" -CenterMark.dark.url = "/mocked/base/path/ui/logos/opensearch_center_mark_on_dark.svg" +CenterMark.dark.url = "/mocked/base/path/ui/logos/wazuh_center_mark_on_dark.svg" CenterMark.light.type = "default" -CenterMark.light.url = "/mocked/base/path/ui/logos/opensearch_center_mark_on_light.svg" +CenterMark.light.url = "/mocked/base/path/ui/logos/wazuh_center_mark_on_light.svg" CenterMark.type = "default" -CenterMark.url = "/mocked/base/path/ui/logos/opensearch_center_mark_on_light.svg" +CenterMark.url = "/mocked/base/path/ui/logos/wazuh_center_mark_on_light.svg" Mark.dark.type = "default" -Mark.dark.url = "/mocked/base/path/ui/logos/opensearch_mark_on_dark.svg" +Mark.dark.url = "/mocked/base/path/ui/logos/wazuh_mark_on_dark.svg" Mark.light.type = "default" -Mark.light.url = "/mocked/base/path/ui/logos/opensearch_mark_on_light.svg" +Mark.light.url = "/mocked/base/path/ui/logos/wazuh_mark_on_light.svg" Mark.type = "default" -Mark.url = "/mocked/base/path/ui/logos/opensearch_mark_on_light.svg" +Mark.url = "/mocked/base/path/ui/logos/wazuh_mark_on_light.svg" OpenSearch.dark.type = "default" -OpenSearch.dark.url = "/mocked/base/path/ui/logos/opensearch_on_dark.svg" +OpenSearch.dark.url = "/mocked/base/path/ui/logos/wazuh_on_dark.svg" OpenSearch.light.type = "default" -OpenSearch.light.url = "/mocked/base/path/ui/logos/opensearch_on_light.svg" +OpenSearch.light.url = "/mocked/base/path/ui/logos/wazuh_on_light.svg" OpenSearch.type = "default" -OpenSearch.url = "/mocked/base/path/ui/logos/opensearch_on_light.svg" +OpenSearch.url = "/mocked/base/path/ui/logos/wazuh_on_light.svg" colorScheme = "light" `; diff --git a/src/core/public/chrome/ui/header/__snapshots__/collapsible_nav.test.tsx.snap b/src/core/public/chrome/ui/header/__snapshots__/collapsible_nav.test.tsx.snap index 52378a456579..f10a15b22fbb 100644 --- a/src/core/public/chrome/ui/header/__snapshots__/collapsible_nav.test.tsx.snap +++ b/src/core/public/chrome/ui/header/__snapshots__/collapsible_nav.test.tsx.snap @@ -140,50 +140,50 @@ exports[`CollapsibleNav renders links grouped by category 1`] = ` "Application": Object { "dark": Object { "type": "default", - "url": "/test/ui/logos/opensearch_dashboards_on_dark.svg", + "url": "/test/ui/logos/wazuh_dashboards_on_dark.svg", }, "light": Object { "type": "default", - "url": "/test/ui/logos/opensearch_dashboards_on_light.svg", + "url": "/test/ui/logos/wazuh_dashboards_on_light.svg", }, "type": "default", - "url": "/test/ui/logos/opensearch_dashboards_on_light.svg", + "url": "/test/ui/logos/wazuh_dashboards_on_light.svg", }, "CenterMark": Object { "dark": Object { "type": "default", - "url": "/test/ui/logos/opensearch_center_mark_on_dark.svg", + "url": "/test/ui/logos/wazuh_center_mark_on_dark.svg", }, "light": Object { "type": "default", - "url": "/test/ui/logos/opensearch_center_mark_on_light.svg", + "url": "/test/ui/logos/wazuh_center_mark_on_light.svg", }, "type": "default", - "url": "/test/ui/logos/opensearch_center_mark_on_light.svg", + "url": "/test/ui/logos/wazuh_center_mark_on_light.svg", }, "Mark": Object { "dark": Object { "type": "default", - "url": "/test/ui/logos/opensearch_mark_on_dark.svg", + "url": "/test/ui/logos/wazuh_mark_on_dark.svg", }, "light": Object { "type": "default", - "url": "/test/ui/logos/opensearch_mark_on_light.svg", + "url": "/test/ui/logos/wazuh_mark_on_light.svg", }, "type": "default", - "url": "/test/ui/logos/opensearch_mark_on_light.svg", + "url": "/test/ui/logos/wazuh_mark_on_light.svg", }, "OpenSearch": Object { "dark": Object { "type": "default", - "url": "/test/ui/logos/opensearch_on_dark.svg", + "url": "/test/ui/logos/wazuh_on_dark.svg", }, "light": Object { "type": "default", - "url": "/test/ui/logos/opensearch_on_light.svg", + "url": "/test/ui/logos/wazuh_on_light.svg", }, "type": "default", - "url": "/test/ui/logos/opensearch_on_light.svg", + "url": "/test/ui/logos/wazuh_on_light.svg", }, "colorScheme": "light", } @@ -567,7 +567,7 @@ exports[`CollapsibleNav renders links grouped by category 1`] = `
@@ -615,7 +615,7 @@ exports[`CollapsibleNav renders links grouped by category 1`] = ` >