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

Add data-testid

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
This commit is contained in:
Alex Andreev 2022-04-13 16:26:08 +03:00
parent 1e4724fc3f
commit 782f5c3b5d

View File

@ -26,7 +26,7 @@ export function ClusterNoMetrics({ className }: ClusterNoMetricsProps) {
} }
return ( return (
<div className={cssNames(styles.ClusterNoMetrics, className)}> <div className={cssNames(styles.ClusterNoMetrics, className)} data-testid="no-metrics-message">
<Icon material="info"/> <Icon material="info"/>
<p>Metrics are not available due to missing or invalid Prometheus configuration.</p> <p>Metrics are not available due to missing or invalid Prometheus configuration.</p>
<p><span className={styles.link} onClick={openSettingsPage}>Open cluster settings</span></p> <p><span className={styles.link} onClick={openSettingsPage}>Open cluster settings</span></p>