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

Random behat failure in course competencies page

XMLWordPrintable

      Different (in theory) from MDL-65538, this is happening randomly, but often enough to deserve an issue:

      Link: https://ci.moodle.org/job/W37.07.01%20-%20Behat%20-%20Firefox%20+%20Postgres%20+%20Classic/134/

      Affects, at very least to 37, 38 and master. Both boost and classic. Specially to firefox.

      001 Scenario: Go to the competency course competencies page. # /var/www/html/admin/tool/lp/tests/behat/course_competencies.feature:48
            And I should not see "Test-Comp2"                      # /var/www/html/admin/tool/lp/tests/behat/course_competencies.feature:58
              "Test-Comp2" text was found in the page
      

      And, not so often, but also added under this issue's umbrella, there is the sister problem:

      Link: https://ci.moodle.org/job/W38.07.01%20-%20Behat%20-%20Firefox%20+%20Postgres%20+%20Classic/7/

      001 Scenario: Go to the competency course competencies page. # /var/www/html/admin/tool/lp/tests/behat/course_competencies.feature:48
            And I should not see "Test-Comp1"                      # /var/www/html/admin/tool/lp/tests/behat/course_competencies.feature:61
              "Test-Comp1" text was found in the page
      

      Surely the former failing earlier causes the later to fail less often.

      And 2 more failures in the same scenario that have just passed the threshold to be reported (headless, after W3C switch, apparently):

      Link: https://ci.moodle.org/job/S39.04.01%20-%20Behat%20-%20Firefox%20+%20Postgres/60/

      001 Scenario: Go to the competency course competencies page.                           # /var/www/html/admin/tool/lp/tests/behat/course_competencies.feature:48
            And I set the field "Filter competencies by resource or activity" to "PageName2" # /var/www/html/admin/tool/lp/tests/behat/course_competencies.feature:59
              (Facebook\WebDriver\Exception\NoSuchElementException)
      

      Link: https://ci.moodle.org/job/W310.07.01%20-%20Behat%20-%20Firefox%20+%20Postgres%20+%20Classic/135/

      001 Scenario: Go to the competency course competencies page. # /var/www/html/admin/tool/lp/tests/behat/course_competencies.feature:48
            And I should not see "Test-Comp1"                      # /var/www/html/admin/tool/lp/tests/behat/course_competencies.feature:61
              The element reference of <strong> 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)
      

      Don't know it the 2 more recent are the same / related to the initial ones but being reported differently after the switch to W3C drivers and headless... or no. Just we have detected those 4 different failures in that scenario.

            Unassigned Unassigned
            stronk7 Eloy Lafuente (stronk7)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:

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

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