testkube
testkube copied to clipboard
Dashboard - TestSuite edit - "exit" confirmation
Describe the bug If the testsuite is being edited (for example new tests are added), and the user clicks anything (for example another tab like Variables & Secrets) accidentally, the edited, and unsaved changes are lost.
To Reproduce Steps to reproduce the behavior:
- Create Testsuite, and add some tests to it (don't save them)
- Click
Variables & Secrets - Edited testsuite contents is lost - user need to configure it again
Expected behavior Additional confirmation that unsaved changes will be lost.
We have now the frontend mechanism for that, which simply requires adding monitLeave prop to the <CardForm />. We should probably incorporate that in all forms.