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

Prevent all the test to fail if a modal window is found during functional tests execution

XMLWordPrintable

    • MOODLE_25_STABLE
    • MOODLE_25_STABLE
    • MDL-39528_master
    • Hide
      1. Pull a modified test to make a JS modal window appear
        • git pull git://github.com/dmonllao/moodle.git MDL-39528_master-testme
        • Run behat with --tags @MDL-39528 option
        • You SHOULD see a failure with Modal window present. Ensure there are no edited forms pending to submit/cancel
      Show
      Pull a modified test to make a JS modal window appear git pull git://github.com/dmonllao/moodle.git MDL-39528 _master-testme Run behat with --tags @ MDL-39528 option You SHOULD see a failure with Modal window present. Ensure there are no edited forms pending to submit/cancel

      This is a scenario that is unfortunately common, it appears a modal window and the other scenarios execution can not continue because JS modal windows are blocking everything until they are accepted or cancelled. I suppose the solution could be at the hook level, looking for modal windows and killing them before beginning with other stuff, but I haven't tried anything so I have no idea if it will work, but it makes sense.

            dmonllao David Monllaó
            dmonllao David Monllaó
            Dan Poltawski Dan Poltawski
            Damyon Wiese Damyon Wiese
            Frédéric Massart Frédéric Massart
            Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:

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