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

Apply an optional multiplier to behat window size changes

XMLWordPrintable

    • MOODLE_310_STABLE, MOODLE_311_STABLE, MOODLE_39_STABLE, MOODLE_400_STABLE
    • MOODLE_310_STABLE, MOODLE_311_STABLE, MOODLE_39_STABLE
    • MDL-72874-master
    • Hide
      1. Initialise behat
      2. Run the following scenario: admin/tool/behat/tests/behat/keyboard.feature
        *Make a note of the approximate window size in your brain*
        (or take a screenshot)
      3. Open config.php and, just after the setting of behat_wwwroot set:

        $CFG->behat_window_size_modifier = 3;
        

      4. Run the scenario again
        1. Confirm that the window is 3 times larger (approximate guess is fine)
      5. Change the value to 0.5
      6. Run the scenario again
        1. Confirm that the window is now half the original size (approximate guess is fine)
      7. Change the value to the string "oops";
      8. Run the scenario again
        1. Confirm that the window is the original size
      9. Rejoice
      Show
      Initialise behat Run the following scenario: admin/tool/behat/tests/behat/keyboard.feature * Make a note of the approximate window size in your brain * (or take a screenshot) Open config.php and, just after the setting of behat_wwwroot set: $CFG->behat_window_size_modifier = 3; Run the scenario again Confirm that the window is 3 times larger (approximate guess is fine) Change the value to 0.5 Run the scenario again Confirm that the window is now half the original size (approximate guess is fine) Change the value to the string "oops"; Run the scenario again Confirm that the window is the original size Rejoice

      This is part of a proposal to allow reruns of behat tests to be run at a different window size to prevent test failures related to window sizing issues.

        1. MDL-72874_Step 2.png
          MDL-72874_Step 2.png
          70 kB
        2. MDL-72874_Step 4.png
          MDL-72874_Step 4.png
          97 kB
        3. MDL-72874_Step 6.png
          MDL-72874_Step 6.png
          131 kB
        4. MDL-72874_Step 8.png
          MDL-72874_Step 8.png
          201 kB

            dobedobedoh Andrew Lyons
            dobedobedoh Andrew Lyons
            Sara Arjona (@sarjona) Sara Arjona (@sarjona)
            Shamim Rezaie Shamim Rezaie
            Angelia Dela Cruz Angelia Dela Cruz
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 45 minutes
                45m

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