France-ioi / AlgoreaFrontend

Front-end for the new Algorea platform
MIT License
4 stars 1 forks source link

Bug: changes lost when changing tabs from parameters to dependencies #1767

Closed smadbe closed 2 months ago

smadbe commented 3 months ago

Describe the bug The changes are lost when changing tabs from parameters to dependencies. The "Confirm Navigation" modal is displayed after the navigation.

To Reproduce Steps to reproduce the behavior:

  1. As the usual user
  2. Go to the a parameter page https://dev.algorea.org/en/a/39530140456452546;p=4702,4102,1980584647557587953;a=0/parameters
  3. Click add "!" to the title
  4. Change to the "dependencies" tab
  5. Select "no" into the modal to "Do you want to leave this page and lose its changes?"
  6. Check in the parameter tab that the change has been lost

It is important to add a E2E test here to prevent re-breaking that without noticing.