From 79ddfb98f3dd490e5a5cfcb445657658050b7a3c Mon Sep 17 00:00:00 2001 From: Anan Zhuang Date: Thu, 11 Apr 2024 14:18:40 -0700 Subject: [PATCH] Fix tests in 6360 (#6411) Signed-off-by: Anan Zhuang --- .../dashboard_listing.test.tsx.snap | 15 +++++++++++++++ .../dashboard_top_nav.test.tsx.snap | 18 ++++++++++++++++++ 2 files changed, 33 insertions(+) diff --git a/src/plugins/dashboard/public/application/components/dashboard_listing/__snapshots__/dashboard_listing.test.tsx.snap b/src/plugins/dashboard/public/application/components/dashboard_listing/__snapshots__/dashboard_listing.test.tsx.snap index 5e6645f56d9c..db34c4f229bb 100644 --- a/src/plugins/dashboard/public/application/components/dashboard_listing/__snapshots__/dashboard_listing.test.tsx.snap +++ b/src/plugins/dashboard/public/application/components/dashboard_listing/__snapshots__/dashboard_listing.test.tsx.snap @@ -813,6 +813,9 @@ exports[`dashboard listing hideWriteControls 1`] = ` "tls": "https://opensearch.org/docs/mocked-test-branch/dashboards/install/tls/", }, "introduction": "https://opensearch.org/docs/mocked-test-branch/dashboards/index/", + "management": Object { + "advancedSettings": "https://opensearch.org/docs/mocked-test-branch/dashboards/management/advanced-settings/", + }, "mapTiles": "https://opensearch.org/docs/mocked-test-branch/dashboards/maptiles", "notebooks": Object { "base": "https://opensearch.org/docs/mocked-test-branch/dashboards/notebooks", @@ -1955,6 +1958,9 @@ exports[`dashboard listing render table listing with initial filters from URL 1` "tls": "https://opensearch.org/docs/mocked-test-branch/dashboards/install/tls/", }, "introduction": "https://opensearch.org/docs/mocked-test-branch/dashboards/index/", + "management": Object { + "advancedSettings": "https://opensearch.org/docs/mocked-test-branch/dashboards/management/advanced-settings/", + }, "mapTiles": "https://opensearch.org/docs/mocked-test-branch/dashboards/maptiles", "notebooks": Object { "base": "https://opensearch.org/docs/mocked-test-branch/dashboards/notebooks", @@ -3158,6 +3164,9 @@ exports[`dashboard listing renders call to action when no dashboards exist 1`] = "tls": "https://opensearch.org/docs/mocked-test-branch/dashboards/install/tls/", }, "introduction": "https://opensearch.org/docs/mocked-test-branch/dashboards/index/", + "management": Object { + "advancedSettings": "https://opensearch.org/docs/mocked-test-branch/dashboards/management/advanced-settings/", + }, "mapTiles": "https://opensearch.org/docs/mocked-test-branch/dashboards/maptiles", "notebooks": Object { "base": "https://opensearch.org/docs/mocked-test-branch/dashboards/notebooks", @@ -4361,6 +4370,9 @@ exports[`dashboard listing renders table rows 1`] = ` "tls": "https://opensearch.org/docs/mocked-test-branch/dashboards/install/tls/", }, "introduction": "https://opensearch.org/docs/mocked-test-branch/dashboards/index/", + "management": Object { + "advancedSettings": "https://opensearch.org/docs/mocked-test-branch/dashboards/management/advanced-settings/", + }, "mapTiles": "https://opensearch.org/docs/mocked-test-branch/dashboards/maptiles", "notebooks": Object { "base": "https://opensearch.org/docs/mocked-test-branch/dashboards/notebooks", @@ -5564,6 +5576,9 @@ exports[`dashboard listing renders warning when listingLimit is exceeded 1`] = ` "tls": "https://opensearch.org/docs/mocked-test-branch/dashboards/install/tls/", }, "introduction": "https://opensearch.org/docs/mocked-test-branch/dashboards/index/", + "management": Object { + "advancedSettings": "https://opensearch.org/docs/mocked-test-branch/dashboards/management/advanced-settings/", + }, "mapTiles": "https://opensearch.org/docs/mocked-test-branch/dashboards/maptiles", "notebooks": Object { "base": "https://opensearch.org/docs/mocked-test-branch/dashboards/notebooks", diff --git a/src/plugins/dashboard/public/application/components/dashboard_top_nav/__snapshots__/dashboard_top_nav.test.tsx.snap b/src/plugins/dashboard/public/application/components/dashboard_top_nav/__snapshots__/dashboard_top_nav.test.tsx.snap index e7e215dfb6bb..51679fa90b36 100644 --- a/src/plugins/dashboard/public/application/components/dashboard_top_nav/__snapshots__/dashboard_top_nav.test.tsx.snap +++ b/src/plugins/dashboard/public/application/components/dashboard_top_nav/__snapshots__/dashboard_top_nav.test.tsx.snap @@ -705,6 +705,9 @@ exports[`Dashboard top nav render in embed mode 1`] = ` "tls": "https://opensearch.org/docs/mocked-test-branch/dashboards/install/tls/", }, "introduction": "https://opensearch.org/docs/mocked-test-branch/dashboards/index/", + "management": Object { + "advancedSettings": "https://opensearch.org/docs/mocked-test-branch/dashboards/management/advanced-settings/", + }, "mapTiles": "https://opensearch.org/docs/mocked-test-branch/dashboards/maptiles", "notebooks": Object { "base": "https://opensearch.org/docs/mocked-test-branch/dashboards/notebooks", @@ -1673,6 +1676,9 @@ exports[`Dashboard top nav render in embed mode, and force hide filter bar 1`] = "tls": "https://opensearch.org/docs/mocked-test-branch/dashboards/install/tls/", }, "introduction": "https://opensearch.org/docs/mocked-test-branch/dashboards/index/", + "management": Object { + "advancedSettings": "https://opensearch.org/docs/mocked-test-branch/dashboards/management/advanced-settings/", + }, "mapTiles": "https://opensearch.org/docs/mocked-test-branch/dashboards/maptiles", "notebooks": Object { "base": "https://opensearch.org/docs/mocked-test-branch/dashboards/notebooks", @@ -2641,6 +2647,9 @@ exports[`Dashboard top nav render in embed mode, components can be forced show b "tls": "https://opensearch.org/docs/mocked-test-branch/dashboards/install/tls/", }, "introduction": "https://opensearch.org/docs/mocked-test-branch/dashboards/index/", + "management": Object { + "advancedSettings": "https://opensearch.org/docs/mocked-test-branch/dashboards/management/advanced-settings/", + }, "mapTiles": "https://opensearch.org/docs/mocked-test-branch/dashboards/maptiles", "notebooks": Object { "base": "https://opensearch.org/docs/mocked-test-branch/dashboards/notebooks", @@ -3609,6 +3618,9 @@ exports[`Dashboard top nav render in full screen mode with appended URL param bu "tls": "https://opensearch.org/docs/mocked-test-branch/dashboards/install/tls/", }, "introduction": "https://opensearch.org/docs/mocked-test-branch/dashboards/index/", + "management": Object { + "advancedSettings": "https://opensearch.org/docs/mocked-test-branch/dashboards/management/advanced-settings/", + }, "mapTiles": "https://opensearch.org/docs/mocked-test-branch/dashboards/maptiles", "notebooks": Object { "base": "https://opensearch.org/docs/mocked-test-branch/dashboards/notebooks", @@ -4577,6 +4589,9 @@ exports[`Dashboard top nav render in full screen mode, no componenets should be "tls": "https://opensearch.org/docs/mocked-test-branch/dashboards/install/tls/", }, "introduction": "https://opensearch.org/docs/mocked-test-branch/dashboards/index/", + "management": Object { + "advancedSettings": "https://opensearch.org/docs/mocked-test-branch/dashboards/management/advanced-settings/", + }, "mapTiles": "https://opensearch.org/docs/mocked-test-branch/dashboards/maptiles", "notebooks": Object { "base": "https://opensearch.org/docs/mocked-test-branch/dashboards/notebooks", @@ -5545,6 +5560,9 @@ exports[`Dashboard top nav render with all components 1`] = ` "tls": "https://opensearch.org/docs/mocked-test-branch/dashboards/install/tls/", }, "introduction": "https://opensearch.org/docs/mocked-test-branch/dashboards/index/", + "management": Object { + "advancedSettings": "https://opensearch.org/docs/mocked-test-branch/dashboards/management/advanced-settings/", + }, "mapTiles": "https://opensearch.org/docs/mocked-test-branch/dashboards/maptiles", "notebooks": Object { "base": "https://opensearch.org/docs/mocked-test-branch/dashboards/notebooks",