testkube icon indicating copy to clipboard operation
testkube copied to clipboard

Dashboard - TestSuite edit - "exit" confirmation

Open tkonieczny opened this issue 2 years ago • 1 comments

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:

  1. Create Testsuite, and add some tests to it (don't save them)
  2. Click Variables & Secrets
  3. Edited testsuite contents is lost - user need to configure it again

Expected behavior Additional confirmation that unsaved changes will be lost.

tkonieczny avatar Sep 27 '23 10:09 tkonieczny

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.

rangoo94 avatar Oct 05 '23 07:10 rangoo94