Fixing tests

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

No files matched your search

+1 -1
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"
}
},
@@ -66,5 +66,9 @@
color: var(--textColorAccent);
font-weight: bold;
}
.allGood {
color: white;
}
}
}
@@ -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>
@@ -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>