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

    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.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Votes:
                  1 Vote for this issue
                  Watchers:
                  6 Start watching this issue

                  Dates

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