Skip to content

Commit

Permalink
Test(functional): Fix home path
Browse files Browse the repository at this point in the history
  • Loading branch information
yenienserrano committed Nov 15, 2024
1 parent 1422bc5 commit 7f21bba
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions test/functional/apps/home/_home.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,15 @@ 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 () => {
await PageObjects.common.navigateToApp('settings');
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
Expand Down
8 changes: 4 additions & 4 deletions test/functional/apps/visualize/_custom_branding.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,15 +143,15 @@ 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 () => {
await PageObjects.common.navigateToApp('settings');
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.
Expand Down Expand Up @@ -211,15 +211,15 @@ 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 () => {
await PageObjects.common.navigateToApp('settings');
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.
Expand Down

0 comments on commit 7f21bba

Please sign in to comment.