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

Problem running some behat tests alone

XMLWordPrintable

    • MOODLE_310_STABLE, MOODLE_311_STABLE, MOODLE_39_STABLE, MOODLE_400_STABLE
    • MOODLE_310_STABLE, MOODLE_311_STABLE, MOODLE_39_STABLE
    • Hide

      Run the following single scenario, confirm it passes:

      $ bin/moodle-docker-compose exec --user www-data webserver php admin/tool/behat/cli/run.php --name="Import process without permission option"
      

      Show
      Run the following single scenario, confirm it passes: $ bin/moodle-docker-compose exec --user www-data webserver php admin/tool/behat/cli/run.php --name="Import process without permission option"

      By coincidence (MDL-72507) it has been discovered that running these scenarios in 39_STABLE or 310_STABLE, end with error:

      --name 'Import course content bank content'
       
      Moodle 3.9.10+ (Build: 20211003), bbbed68f9bc5d770c77d484733946bbe794f6e0a
      Php: 7.3.30, pgsql: 13.3, OS: Darwin 20.6.0 x86_64
      Server OS "Darwin", Browser: "chrome"
      Started at 04-10-2021, 16:17
      ........F-----........F-----
       
      --- Pasos fallidos:
       
      001 Scenario: Import content bank content to another course                      # /Users/stronk7/git_moodle/integration/backup/util/ui/tests/behat/import_contentbank_content.feature:24
            When I import "Course 1" course into "Course 2" course using this options: # /Users/stronk7/git_moodle/integration/backup/util/ui/tests/behat/import_contentbank_content.feature:28
              Fatal error: Class 'behat_form_field' not found (Behat\Testwork\Call\Exception\FatalThrowableError)
       
      002 Scenario: User could configure not to import content bank                    # /Users/stronk7/git_moodle/integration/backup/util/ui/tests/behat/import_contentbank_content.feature:35
            When I import "Course 1" course into "Course 2" course using this options: # /Users/stronk7/git_moodle/integration/backup/util/ui/tests/behat/import_contentbank_content.feature:39
              Fatal error: Class 'behat_form_field' not found (Behat\Testwork\Call\Exception\FatalThrowableError)
       
      2 escenarios (2 fallaron)
      28 pasos (16 pasaron, 2 fallaron, 10 saltadas
      

      The same execution passes perfectly with 311_STABLE and master.

      Note that, for complete runs... it passes under all branches (surely because some other stuff loads that missing class, I imagine).

      Main difference is that those 2 scenarios are defined as @javascript with 311 and up, while they are goutte with the failing 39 and 310.

      This may be happening to other scenarios too, hard to verify all them 1 by 1.

            pholden Paul Holden
            stronk7 Eloy Lafuente (stronk7)
            Renaat Debleu Renaat Debleu
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 hour, 7 minutes
                1h 7m

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