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

    Details

    • Testing Instructions:
      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
    • Affected Branches:
      MOODLE_25_STABLE
    • Fixed Branches:
      MOODLE_25_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-39528_master

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              dmonllao David Monllaó
              Reporter:
              dmonllao David Monllaó
              Peer reviewer:
              Dan Poltawski
              Integrator:
              Damyon Wiese
              Tester:
              Frédéric Massart
              Participants:
              Component watchers:
              Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              1 Vote for this issue
              Watchers:
              6 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                8/Jul/13