diff --git a/integration/__tests__/cluster-pages.tests.ts b/integration/__tests__/cluster-pages.tests.ts index 8dae67dcaf..be032afab3 100644 --- a/integration/__tests__/cluster-pages.tests.ts +++ b/integration/__tests__/cluster-pages.tests.ts @@ -36,7 +36,7 @@ function getSidebarSelectors(itemId: string) { return { expandSubMenu: `${root} .nav-item`, - subMenuLink: (href: string) => `.Sidebar .sub-menu a[href^="/${href}"]`, + subMenuLink: (href: string) => `[data-testid=cluster-sidebar] .sub-menu a[href^="/${href}"]`, }; } diff --git a/integration/helpers/utils.ts b/integration/helpers/utils.ts index f0e82809fb..f9a10e1d4d 100644 --- a/integration/helpers/utils.ts +++ b/integration/helpers/utils.ts @@ -113,7 +113,7 @@ export async function lauchMinikubeClusterFromCatalog(window: Page): Promise { const { className } = this.props; return ( -
+
{this.renderCluster()}