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

Random failures with glossary_random with Firefox and slow environments

    XMLWordPrintable

Details

    • MOODLE_400_STABLE, MOODLE_401_STABLE, MOODLE_402_STABLE, MOODLE_403_STABLE
    • MOODLE_400_STABLE, MOODLE_401_STABLE, MOODLE_402_STABLE
    • MDL-78040-401
    • MDL-78040-402
    • Hide
      1. Confirm the test "Add the glossary random block when main feature is disabled" passes when testing with Firefox & Oracle.
      2. The easiest way to test is to clone and use moodle-docker.
      3. Folow the quick start guide. Please note that you will need to rename your config.php as the third step will copy the config.php docker template to the site to be tested.

        export MOODLE_DOCKER_WWWROOT=/path/to/integration_40X
        export MOODLE_DOCKER_DB=oracle
        cp config.docker-template.php $MOODLE_DOCKER_WWWROOT/config.php
        bin/moodle-docker-compose up -d
        bin/moodle-docker-wait-for-db
        

      4. Init behat

        bin/moodle-docker-compose exec webserver php admin/tool/behat/cli/init.php
        

      5. Run the failing test and ensure it passes:

        bin/moodle-docker-compose exec --user www-data webserver php admin/tool/behat/cli/run.php --name="Add the glossary random block when main feature is disabled"
        

      Show
      Confirm the test "Add the glossary random block when main feature is disabled" passes when testing with Firefox & Oracle . The easiest way to test is to clone and use moodle-docker . Folow the quick start guide. Please note that you will need to rename your config.php as the third step will copy the config.php docker template to the site to be tested. export MOODLE_DOCKER_WWWROOT=/path/to/integration_40X export MOODLE_DOCKER_DB=oracle cp config.docker-template.php $MOODLE_DOCKER_WWWROOT/config.php bin/moodle-docker-compose up -d bin/moodle-docker-wait-for-db Init behat bin/moodle-docker-compose exec webserver php admin/tool/behat/cli/init.php Run the failing test and ensure it passes: bin/moodle-docker-compose exec --user www-data webserver php admin/tool/behat/cli/run.php --name="Add the glossary random block when main feature is disabled"

    Description

      This was detected while working with MDL-78016 and by coincidence, because it's a combination (Firefox + Oracle) that we don't run in the CIs.

      There is one scenario that fails randomly, only with Firefox and with slow environments (normally Oracle). The same scenario always passes with Chrome and the same slow environment.

      Scenario: The glossary random block is displayed even when glossary module is disabled

      001 Scenario: The glossary random block is displayed even when glossary module is disabled       # /var/www/html/blocks/glossary_random/tests/behat/glossary_random_addblock_disabled.feature:13
            When I navigate to "Plugins > Activity modules > Manage activities" in site administration # /var/www/html/blocks/glossary_random/tests/behat/glossary_random_addblock_disabled.feature:17
              The element reference of <a class="nav-link  " href="http://webserver65e92110db112cb8/admin/search.php"> is stale; either the element is no longer attached to the DOM, it is not in the current frame context, or the document has been refreshed (Facebook\WebDriver\Exception\StaleElementReferenceException)
      

      It affects 4.2.0 and 4.3dev and, surely, also to older branches.

      Attachments

        Issue Links

          Activity

            People

              pholden Paul Holden
              stronk7 Eloy Lafuente (stronk7)
              Simey Lameze Simey Lameze
              Sara Arjona (@sarjona) Sara Arjona (@sarjona)
              CiBoT CiBoT
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

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

                  Clockify

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