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:
parent
9186fa84d7
commit
b9025e178f
@ -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>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user