1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

Fixing integration tests

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
This commit is contained in:
Alex Andreev 2021-09-09 16:19:40 +03:00
parent 3b58322e26
commit 443b7d5326
3 changed files with 3 additions and 3 deletions

View File

@ -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}"]`,
};
}

View File

@ -113,7 +113,7 @@ export async function lauchMinikubeClusterFromCatalog(window: Page): Promise<Fra
const frame = await minikubeFrame.contentFrame();
await frame.waitForSelector("div.Sidebar");
await frame.waitForSelector("[data-testid=cluster-sidebar]");
return frame;
}

View File

@ -209,7 +209,7 @@ export class Sidebar extends React.Component<Props> {
const { className } = this.props;
return (
<div className={cssNames("flex flex-col", className)}>
<div className={cssNames("flex flex-col", className)} data-testid="cluster-sidebar">
{this.renderCluster()}
<div className={styles.sidebarNav}>
<SidebarItem