Skip to content

Conversation

rohitsen49
Copy link
Collaborator

@rohitsen49 rohitsen49 commented Jul 29, 2025

Overview

This PR improves the test navigation experience in the TestRun flow by:

  • Moving the saveForm() logic to occur before the modal confirmation appears
  • Simplifying modal confirmation to only call navigateTests(...)
  • Removing the goToNextTest clause from performButtonAction
  • Ensuring assertion results are reliably saved across test transitions

Additional Changes

  • Cleaned up unnecessary or commented-out code
  • Updated TestRun.e2e.test.js to reflect the new modal flow
  • Removed redundant yesButton1, yesButton2, and yesButton3 conditional logic
  • Confirmed all E2E tests pass locally

Notes

These changes address issue #1350 and ensure that form state is preserved when navigating between tests. This update improves test reliability and helps users avoid accidentally losing unsaved results.

- Moved "Submit Results" button to appear before "Next Test"
- Added a confirmation modal that prompts user before submitting results
- Ensured test state persists correctly on submission
- No changes made to E2E test file; functionality verified in dev environment
…tion

- Moved saveForm() to top-level and called it before modal dialog is shown
- Simplified modal confirmation logic to only handle navigation
- Removed 'goToNextTest' clause from performButtonAction
- Cleaned up commented code and verified test state persists across navigation
- All E2E tests in TestRun suite are passing
…tests

Now that modal confirmation is handled directly during test navigation,
the manual Yes button checks (yesButton1, yesButton2, yesButton3) are no longer needed.
This commit simplifies the E2E test file and ensures all tests still pass after cleanup.
@rohitsen49 rohitsen49 changed the title Save form before modal confirmation in test navigation flow Test result submission UX #1350 Jul 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant