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

Random behat fails in timeline block

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide
      1. Open your terminal and go to your Moodle root folder.
      2. Apply the testing patch in the file attached to this issue.
        1. Download the patch file to your moodle root
        2. Apply the patch

           git am 001-TESTING-COMMIT-FOR-MDL-63667.-Do-Not-Integrate.patch

      3. Purge Moodle caches from the command line with

        php admin/cli/purge_caches.php

        or if using MDK,

        mdk purge

      4. Login to Moodle and view the dashboard page.
      5. Verify you don't see an error message "Failed to pre-fetch the template:"
      6. Reload the dashboard page several more times
      7. Confirm that you don't see the pre-fetch error message
      8. Open the browser dev tools and go to the Javascript console.
      9. Verify the console contains 2 cases of text like: 
        *****************************
        A2 returned: A2 Includes B:
        B Includes C:
        C Includes D:
        D Includes E:
        E Includes F:
        F
        End E
        End D
        End C
        End B
        End A2
        *****************************
        (It can say A1 or A2)
      10. Verify there are no cases without an "F" in the middle.

       Important: After the test, remember to revert your Moodle instances' codebase to the original branch.

      • master: git reset --hard origin/master
      • 35: git reset --hard origin/MOODLE_35_STABLE
      • 34: git reset --hard origin/MOODLE_34_STABLE 
      Show
      Open your terminal and go to your Moodle root folder. Apply the testing patch in the file attached to this issue. Download the patch file to your moodle root Apply the patch git am 001-TESTING-COMMIT-FOR-MDL-63667.-Do-Not-Integrate.patch Purge Moodle caches from the command line with php admin/cli/purge_caches.php or if using MDK, mdk purge Login to Moodle and view the dashboard page. Verify you don't see an error message "Failed to pre-fetch the template:" Reload the dashboard page several more times Confirm that you don't see the pre-fetch error message Open the browser dev tools and go to the Javascript console. Verify the console contains 2 cases of text like:  ***************************** A2 returned: A2 Includes B: B Includes C: C Includes D: D Includes E: E Includes F: F End E End D End C End B End A2 ***************************** (It can say A1 or A2) Verify there are no cases without an "F" in the middle.   Important: After the test, remember to revert your Moodle instances' codebase to the original branch. master: git reset --hard origin/master 35: git reset --hard origin/MOODLE_35_STABLE 34: git reset --hard origin/MOODLE_34_STABLE  
    • Affected Branches:
      MOODLE_36_STABLE
    • Fixed Branches:
      MOODLE_34_STABLE, MOODLE_35_STABLE
    • Pull from Repository:
    • Pull 3.5 Branch:
    • Pull Master Branch:
      MDL-63667-master

      Description

      Moodle 3.6dev (Build: 20181011), 0613ce62ed2d62287afefb0b39fcf71391f09ff5
      Php: 7.0.32, pgsql: 9.6.9, OS: Darwin 17.7.0 x86_64
      Server OS "Darwin", Browser: "chrome"
      Browser specific fixes have been applied. See http://docs.moodle.org/dev/Acceptance_testing#Browser_specific_fixes
      Started at 16-10-2018, 14:18
      ........F-----
       
      --- Failed steps:
       
      001 Scenario: Next 7 days in date view                                   # /Users/nicols/Sites/moodles/sm/moodle/blocks/timeline/tests/behat/block_timeline_dates.feature:34
            Then I should see "Test choice 1 closes" in the "Timeline" "block" # /Users/nicols/Sites/moodles/sm/moodle/blocks/timeline/tests/behat/block_timeline_dates.feature:38
              "Test choice 1 closes" text was not found in the "Timeline" element (Behat\Mink\Exception\ExpectationException)
       
      1 scenario (1 failed)
      14 steps (8 passed, 1 failed, 5 skipped)
      1m5.38s (69.75Mb)
      

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  12/Nov/18

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 hour
                  1h