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

Fixing tests

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
This commit is contained in:
Alex Andreev 2021-10-22 06:20:31 +03:00
parent 9186fa84d7
commit b9025e178f
4 changed files with 7 additions and 3 deletions

View File

@ -74,7 +74,7 @@ const commonPageTests: CommonPageTest[] = [{
page: {
name: "Cluster",
href: "/overview",
expectedSelector: "div.ClusterOverview div.label",
expectedSelector: "div[data-testid='cluster-overview-page'] div.label",
expectedText: "CPU"
}
},

View File

@ -66,5 +66,9 @@
color: var(--textColorAccent);
font-weight: bold;
}
.allGood {
color: white;
}
}
}

View File

@ -149,7 +149,7 @@ export class ClusterIssues extends React.Component<Props> {
if (!warnings.length) {
return (
<div className={cssNames(styles.noIssues, "flex column box grow gaps align-center justify-center")}>
<div><Icon style={{ color: "white" }} material="check" big sticker/></div>
<div><Icon className={styles.allGood} material="check" big sticker/></div>
<div className="ok-title">No issues found</div>
<span>Everything is fine in the Cluster</span>
</div>

View File

@ -101,7 +101,7 @@ export class ClusterOverview extends React.Component {
return (
<TabLayout>
<div className={styles.ClusterOverview}>
<div className={styles.ClusterOverview} data-testid="cluster-overview-page">
{this.renderClusterOverview(isLoaded, isMetricHidden)}
</div>
</TabLayout>