Cluter list test (#503)

* Render cluster list on the screen

* Init the test

* Finish the test
This commit is contained in:
Tamir Abutbul
2024-01-23 19:46:42 +02:00
committed by GitHub
parent 383760e7a7
commit 6a7cadef70
2 changed files with 72 additions and 3 deletions

View File

@@ -112,10 +112,10 @@ function ClustersList({
return (
<span
key={cluster.Name}
className="flex items-center mt-2 text-xs"
className="data-cy-clusterName flex items-center mt-2 text-xs"
>
<input
className="cursor-pointer"
className="cursor-pointer data-cy-clustersInput"
onChange={(e) => {
onClusterChange(e.target.value);
}}
@@ -154,7 +154,7 @@ function ClustersList({
/>
<label
htmlFor={namespace.name}
className="ml-1"
className="data-cy-clusterList-namespace ml-1"
>{`${namespace.name} [${namespace.amount}]`}</label>
</span>
))}