Skip to content

Frontend: Settings: refactor and test Rename Cluster #2871

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

Faakhir30
Copy link
Contributor

@Faakhir30 Faakhir30 commented Feb 7, 2025

Fixes #2198

Tasks Done:

  • app: tests: added e2e test for cluster renaming.
  • frontend: Settings: Added stories for rename cluster component.
  • frontend: Stateless: Added mocked tests for updateStatelessClusterKubeconfig.
  • frontend: Settings: refactored cluster rename functionality.

Some observations:

(might need confirmation from maintainers)

  • This rename cluster feature is only enabled for electron environments, therefore I've added e2e-test to app dir.
  • After inserting a valid name, if user press Enter instead of clicking Apply, there is no confirmation dialog/modal opening, directly cluster name is updated and Page reloads sucessfully.

@Faakhir30 Faakhir30 force-pushed the test_rename_settings branch from ff73cc9 to b6b6fa9 Compare February 8, 2025 15:52
@Faakhir30 Faakhir30 marked this pull request as ready for review February 8, 2025 16:16
@dosubot dosubot bot added the size:XL This PR changes 500-999 lines, ignoring generated files. label Feb 8, 2025
@illume illume requested review from a team and yolossn February 10, 2025 10:41
@k8s-triage-robot
Copy link

Unknown CLA label state. Rechecking for CLA labels.

Send feedback to sig-contributor-experience at kubernetes/community.

/check-cla
/easycla

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. labels Apr 1, 2025
@k8s-ci-robot
Copy link
Contributor

PR needs rebase.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. size:XL This PR changes 500-999 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

rename cluster frontend tests
3 participants