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

Random behat failures: 'value' must be a string when selecting users

    XMLWordPrintable

    Details

    • Affected Branches:
      MOODLE_35_STABLE, MOODLE_36_STABLE, MOODLE_37_STABLE, MOODLE_38_STABLE, MOODLE_39_STABLE
    • Fixed Branches:
      MOODLE_35_STABLE, MOODLE_36_STABLE, MOODLE_37_STABLE, MOODLE_38_STABLE
    • Pull Master Branch:
      MDL-67827-master
    • Testing Instructions:
      Hide

      CI should have a mass reduction in random failures

      Manual testing

      1. Stick the attached failme.feature into a behat directory
      2. Run it in a loop
      3. Observe your browser dance for you

      Note: I have only used this test in master.

      Show
      CI should have a mass reduction in random failures Manual testing Stick the attached failme.feature into a behat directory Run it in a loop Observe your browser dance for you Note: I have only used this test in master.

      Description

      Issue link: https://ci.moodle.org/job/W.03.01%20-%20Behat%20-%20Chrome%20+%20Postgres/635/

      001 Scenario: Searching for a non-existing user          # /var/www/html/enrol/manual/tests/behat/quickenrolment.feature:130
            And I set the field "Select users" to "qwertyuiop" # /var/www/html/enrol/manual/tests/behat/quickenrolment.feature:133
              Exception: invalid argument: 'value' must be a string
                (Session info: chrome=79.0.3945.117)
                (Driver info: chromedriver=79.0.3945.36 (3582db32b33893869b8c1339e8f4d9ed1816f143-refs/branch-heads/3945@{#614}),platform=Linux 4.15.0-74-generic x86_64) in /var/www/html/vendor/instaclick/php-webdriver/lib/WebDriver/Exception.php:144
      

      This has been detected to be happening at very least in the following scenarios:

      • Searching for a non-existing user
      • Teacher can search and enrol one particular student
      • If there are less than 100 matching users, all are displayed for selection
      • If there are more than 100 matching users, inform there are too many
      • Change the Show user identity setting affects the enrolment pop-up : (happens 2x often than the others)
      • Changing the Maximum users per page setting affects the enrolment pop-up

      Never failing twice apparently, but the last one, that have happened twice a couple of times at very least.

        Attachments

          Activity

            People

            Assignee:
            dobedobedoh Andrew Lyons
            Reporter:
            vmdef Víctor Déniz Falcón
            Peer reviewer:
            Sara Arjona (@sarjona) Sara Arjona (@sarjona)
            Integrator:
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            Tester:
            CiBoT CiBoT
            Participants:
            Component watchers:
            Andrew Lyons, Dongsheng Cai, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              11/May/20

                Time Tracking

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