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:
parent
3b58322e26
commit
443b7d5326
@ -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}"]`,
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@ -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;
|
||||
}
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user