Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-85749

Fix behat when a modal is shown changing tabs in dirty state

XMLWordPrintable

    • 3
    • WP Sprint 2025-I2.2 (Clones)

      In workplace we have this issue WP-5399 which adds the modal that informs you that you have unsaved changes in a form when you are going to change the tab.

      We added some tests to make sure that it works and they don't pass. I added the same tests in core and they don't pass either.

      The problem is that behat is checking that M.util.pending_js is empty and since the modal has been changed changing the tab with shown.bs.tab it is never empty.

            Unassigned Unassigned
            odei.alba@moodle.com Odei Alba
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 25 minutes
                25m

                  Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.