Open
Description
The rename cluster feature needed some further testing work to be done later. This issue gathers that further work.
See
Acceptance criteria
- Extract https://github.com/headlamp-k8s/headlamp/pull/1974/files#diff-360436c42cc1c1880e31a8c726c2dc1cd6e52ed471da9443e9956ac8f7210d5aR246 this part of SettingsCluster into a separate component. Then a .stories.tsx file could be made for that extracted component. Probably a lot of that logic could also move to there.
- updateStatelessClusterKubeconfig should have some tests
- an e2e test for the feature (rename the cluster, see if it is renamed, rename it back, save with empty dialog, test error conditions).