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

Behat failures related with filter_displayh5p

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • 3.9
    • 3.9
    • H5P
    • MOODLE_39_STABLE
    • MOODLE_39_STABLE
    • MDL-68883-master
    • Hide

      Requirements

      1. With Apache, enable and configure mod_userdir
      2. Update your config.php and set the $CFG->behat_wwwroot to point to the userdir URL, i.e. http://localhost/~yourusername/im

      Testing

      1. Re-initialise behat
      2. Run behat with the ./lib/editor/atto/plugins/h5p/tests/behat/h5p.feature file
      Show
      Requirements With Apache, enable and configure mod_userdir Update your config.php and set the $CFG->behat_wwwroot to point to the userdir URL, i.e. http://localhost/~yourusername/im Testing Re-initialise behat Run behat with the ./lib/editor/atto/plugins/h5p/tests/behat/h5p.feature file

    Description

      Part of the 3.9 release testing matrix, I'm getting these consistent failures with Chrome and Mac. Same results after 2 reruns.

      From different parts of the site, when the filter_displayh5p is executed:

      Link: https://pastebin.com/jz2vP6U8

      Moodle 3.9dev+ (Build: 20200529), 06413661817bdb0708da9464f17f0c9465fec1c0
      Php: 7.3.16, mariadb: 10.2.30, OS: Darwin 19.4.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 31-05-2020, 17:41
      ...................................................................... 70
      .................................................F-................... 140
      .F----------------....................F------------------------------- 210
      ------......................F-------......................F----------- 280
      -......................F---......................F-------------------- 350
      -------------
       
      --- Pasos fallidos:
       
      001 Scenario: Insert an h5p file                  # /Users/stronk7/git_moodle/testing/lib/editor/atto/plugins/h5p/tests/behat/h5p.feature:40
            When I click on "Save and display" "button" # /Users/stronk7/git_moodle/testing/lib/editor/atto/plugins/h5p/tests/behat/h5p.feature:55
              Moodle exception: Exception - Warning: preg_replace_callback(): Unknown modifier 't' in [dirroot]/filter/displayh5p/filter.php on line 137 More information about this error
             
              Exception - Warning: preg_replace_callback(): Unknown modifier 't' in [dirroot]/filter/displayh5p/filter.php on line 137
              More information about this error
             
             
                 
              ×
                 
              Debug info:
               
              Error code: generalexceptionmessage
               (Exception)
       
      002 Scenario: Edit H5P content                    # /Users/stronk7/git_moodle/testing/lib/editor/atto/plugins/h5p/tests/behat/h5p.feature:113
            When I click on "Save and display" "button" # /Users/stronk7/git_moodle/testing/lib/editor/atto/plugins/h5p/tests/behat/h5p.feature:129
              Moodle exception: Exception - Warning: preg_replace_callback(): Unknown modifier 't' in [dirroot]/filter/displayh5p/filter.php on line 137 More information about this error
             
              Exception - Warning: preg_replace_callback(): Unknown modifier 't' in [dirroot]/filter/displayh5p/filter.php on line 137
              More information about this error
             
             
                 
              ×
                 
              Debug info:
               
              Error code: generalexceptionmessage
               (Exception)
       
      003 Scenario: Enable/disable H5P options          # /Users/stronk7/git_moodle/testing/lib/editor/atto/plugins/h5p/tests/behat/h5p.feature:149
            When I click on "Save and display" "button" # /Users/stronk7/git_moodle/testing/lib/editor/atto/plugins/h5p/tests/behat/h5p.feature:165
              Moodle exception: Exception - Warning: preg_replace_callback(): Unknown modifier 't' in [dirroot]/filter/displayh5p/filter.php on line 137 More information about this error
             
              Exception - Warning: preg_replace_callback(): Unknown modifier 't' in [dirroot]/filter/displayh5p/filter.php on line 137
              More information about this error
             
             
                 
              ×
                 
              Debug info:
               
              Error code: generalexceptionmessage
               (Exception)
       
      004 Scenario: Private H5P files are shown to students # /Users/stronk7/git_moodle/testing/lib/editor/atto/plugins/h5p/tests/behat/h5p.feature:233
            And I click on "Save and display" "button"      # /Users/stronk7/git_moodle/testing/lib/editor/atto/plugins/h5p/tests/behat/h5p.feature:254
              Moodle exception: Exception - Warning: preg_replace_callback(): Unknown modifier 't' in [dirroot]/filter/displayh5p/filter.php on line 137 More information about this error
             
              Exception - Warning: preg_replace_callback(): Unknown modifier 't' in [dirroot]/filter/displayh5p/filter.php on line 137
              More information about this error
             
             
                 
              ×
                 
              Debug info:
               
              Error code: generalexceptionmessage
               (Exception)
       
      005 Scenario: Render a local H5P file as admin    # /Users/stronk7/git_moodle/testing/filter/displayh5p/tests/behat/h5p_filter.feature:62
            When I click on "Save and display" "button" # /Users/stronk7/git_moodle/testing/filter/displayh5p/tests/behat/h5p_filter.feature:80
              Moodle exception: Exception - Warning: preg_replace_callback(): Unknown modifier 't' in [dirroot]/filter/displayh5p/filter.php on line 137 More information about this error
             
              Exception - Warning: preg_replace_callback(): Unknown modifier 't' in [dirroot]/filter/displayh5p/filter.php on line 137
              More information about this error
             
             
                 
              ×
                 
              Debug info:
               
              Error code: generalexceptionmessage
               (Exception)
       
      006 Scenario: Render a local H5P file as teacher  # /Users/stronk7/git_moodle/testing/filter/displayh5p/tests/behat/h5p_filter.feature:99
            When I click on "Save and display" "button" # /Users/stronk7/git_moodle/testing/filter/displayh5p/tests/behat/h5p_filter.feature:117
              Moodle exception: Exception - Warning: preg_replace_callback(): Unknown modifier 't' in [dirroot]/filter/displayh5p/filter.php on line 137 More information about this error
             
              Exception - Warning: preg_replace_callback(): Unknown modifier 't' in [dirroot]/filter/displayh5p/filter.php on line 137
              More information about this error
             
             
                 
              ×
                 
              Debug info:
               
              Error code: generalexceptionmessage
               (Exception)
       
      007 Scenario: Render a local H5P file with existing libraries # /Users/stronk7/git_moodle/testing/filter/displayh5p/tests/behat/h5p_filter.feature:124
            And I click on "Save and display" "button"              # /Users/stronk7/git_moodle/testing/filter/displayh5p/tests/behat/h5p_filter.feature:142
              Moodle exception: Exception - Warning: preg_replace_callback(): Unknown modifier 't' in [dirroot]/filter/displayh5p/filter.php on line 137 More information about this error
             
              Exception - Warning: preg_replace_callback(): Unknown modifier 't' in [dirroot]/filter/displayh5p/filter.php on line 137
              More information about this error
             
             
                 
              ×
                 
              Debug info:
               
              Error code: generalexceptionmessage
               (Exception)
       
      8 escenarios (1 pasaron, 7 fallaron)
      363 pasos (247 pasaron, 7 fallaron, 109 saltadas)
      2m39.87s (65.55Mb)
      

      Attachments

        Activity

          People

            dobedobedoh Andrew Lyons
            stronk7 Eloy Lafuente (stronk7)
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            Adrian Greeve Adrian Greeve
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Laurent David, Sara Arjona (@sarjona)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              15/Jun/20

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 3 hours, 5 minutes
                3h 5m