zonemaster / zonemaster-gui

The Zonemaster GUI - part of the Zonemaster project
Other
14 stars 22 forks source link

"History" tab does not refresh when doing consecutive tests #412

Open tgreenx opened 1 year ago

tgreenx commented 1 year ago

After running a test on GUI (/run-test), the user gets redirect to a /result/ page at the end of the test, in which the test panel from the /run-test page is still present. This allows the user to quickly re-do a test if desired. However, when doing so, the "History" tab on the /result/ page does not refresh, meaning that it will keep containing the history of tests for the first tested domain.

Steps to reproduce:

  1. Start a test for any domain ("domain1") from the /run-test page.
  2. Wait for the test to complete, after which you are redirected to a /result/ page.
  3. Click on the "History" tab, and check that the completed tests are for "domain1".
  4. Start a new test for another domain ("domain2") from the current /result/ page.
  5. Wait for the test to complete. When the page updates, click on the "History" tab. The list of completed tests will be the same as before (i.e., regarding "domain1"), but it should not (- it should be "domain2").