From 7f21bbae01d5d23d153a3d6ca765d6653cafea4d Mon Sep 17 00:00:00 2001 From: Ian Yenien Serrano <63758389+yenienserrano@users.noreply.github.com> Date: Fri, 15 Nov 2024 22:16:29 +0100 Subject: [PATCH] Test(functional): Fix home path --- test/functional/apps/home/_home.ts | 4 ++-- test/functional/apps/visualize/_custom_branding.ts | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/test/functional/apps/home/_home.ts b/test/functional/apps/home/_home.ts index c75893c86b65..6c0a1a55ddb1 100644 --- a/test/functional/apps/home/_home.ts +++ b/test/functional/apps/home/_home.ts @@ -44,7 +44,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { await globalNav.clickLogo(); await PageObjects.header.waitUntilLoadingHasFinished(); const url = await browser.getCurrentUrl(); - expect(url.includes('/app/wz-home')).to.be(true); + expect(url.includes('/app/home')).to.be(true); }); it('clicking on home button should take you to home page', async () => { @@ -52,7 +52,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { await globalNav.clickHomeButton(); await PageObjects.header.waitUntilLoadingHasFinished(); const url = await browser.getCurrentUrl(); - expect(url.includes('/app/wz-home')).to.be(true); + expect(url.includes('/app/home')).to.be(true); }); // Wazuh: The home page of Wazuh is different from the OpenSearch Dashboards home page diff --git a/test/functional/apps/visualize/_custom_branding.ts b/test/functional/apps/visualize/_custom_branding.ts index 002af7745e14..3a80fbaf45c5 100644 --- a/test/functional/apps/visualize/_custom_branding.ts +++ b/test/functional/apps/visualize/_custom_branding.ts @@ -143,7 +143,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { await globalNav.clickLogo(); await PageObjects.header.waitUntilLoadingHasFinished(); const url = await browser.getCurrentUrl(); - expect(url.includes('/app/wz-home')).to.be(true); + expect(url.includes('/app/home')).to.be(true); }); it('with customized mark logo button that navigates to home page', async () => { @@ -151,7 +151,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { await globalNav.clickHomeButton(); await PageObjects.header.waitUntilLoadingHasFinished(); const url = await browser.getCurrentUrl(); - expect(url.includes('/app/wz-home')).to.be(true); + expect(url.includes('/app/home')).to.be(true); }); // Wazuh: This test is omitted because OpenSearch Dashboards does not have a home dashboard card. @@ -211,7 +211,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { await globalNav.clickLogo(); await PageObjects.header.waitUntilLoadingHasFinished(); const url = await browser.getCurrentUrl(); - expect(url.includes('/app/wz-home')).to.be(true); + expect(url.includes('/app/home')).to.be(true); }); it('with customized mark logo button that navigates to home page', async () => { @@ -219,7 +219,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { await globalNav.clickHomeButton(); await PageObjects.header.waitUntilLoadingHasFinished(); const url = await browser.getCurrentUrl(); - expect(url.includes('/app/wz-home')).to.be(true); + expect(url.includes('/app/home')).to.be(true); }); // Wazuh: This test is omitted because OpenSearch Dashboards does not have a home dashboard card.