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

Bulk Enrolment behat tests failing in clean

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.4
    • Fix Version/s: 3.4
    • Component/s: Enrolments
    • Labels:
    • Testing Instructions:
      Hide
      1. Initialise Behat to run on all themes:

        php admin/tool/behat/cli/init.php -a
        

      2. Run the following Behat test and confirm that everything passes:

        php admin/tool/behat/cli/run.php /path/to/moodle/user/tests/behat/bulk_editenrolment.feature
        

      Show
      Initialise Behat to run on all themes: php admin/tool/behat/cli/init.php -a Run the following Behat test and confirm that everything passes: php admin/tool/behat/cli/run.php /path/to/moodle/user/tests/behat/bulk_editenrolment.feature
    • Affected Branches:
      MOODLE_34_STABLE
    • Fixed Branches:
      MOODLE_34_STABLE
    • Pull Master Branch:
      MDL-59727-master

      Description

      Moodle 3.4dev (Build: 20170804), 8146b1f06de51d1ca6b4043bc524ed2fe26aaa72
      Php: 7.0.20, pgsql: 9.6.3, OS: Darwin 16.7.0 x86_64
      Server OS "Darwin", Browser: "firefox"
      Started at 04-08-2017, 14:59
      .....F-------.....F------
       
      --- Failed steps:
       
      001 Scenario: Bulk edit enrolments # /Users/nicols/Sites/moodles/im/moodle/user/tests/behat/bulk_editenrolment.feature:23
            And I follow "Participants"  # /Users/nicols/Sites/moodles/im/moodle/user/tests/behat/bulk_editenrolment.feature:26
              The "(//html/.//a
              [./@href][((./@id = 'Participants' or contains(normalize-space(string(.)), 'Participants') or contains(./@title, 'Participants') or contains(./@rel, 'Participants')) or .//*[(contains(concat(' ', @class, ' '), ' icon ') or name() = 'img') and (contains(./@alt, 'Participants') or contains(./@title, 'Participants'))])] | //html/.//*
              [translate(./@role, 'ABCDEFGHIJKLMNOPQRSTUVWXYZ', 'abcdefghijklmnopqrstuvwxyz') = 'link'][((./@id = 'Participants' or contains(./@value, 'Participants')) or contains(./@title, 'Participants') or contains(normalize-space(string(.)), 'Participants'))])[1]" xpath node is not visible and it should be visible (Behat\Mink\Exception\ExpectationException)
       
      002 Scenario: Bulk delete enrolments # /Users/nicols/Sites/moodles/im/moodle/user/tests/behat/bulk_editenrolment.feature:36
            And I follow "Participants"    # /Users/nicols/Sites/moodles/im/moodle/user/tests/behat/bulk_editenrolment.feature:39
              The "(//html/.//a
              [./@href][((./@id = 'Participants' or contains(normalize-space(string(.)), 'Participants') or contains(./@title, 'Participants') or contains(./@rel, 'Participants')) or .//*[(contains(concat(' ', @class, ' '), ' icon ') or name() = 'img') and (contains(./@alt, 'Participants') or contains(./@title, 'Participants'))])] | //html/.//*
              [translate(./@role, 'ABCDEFGHIJKLMNOPQRSTUVWXYZ', 'abcdefghijklmnopqrstuvwxyz') = 'link'][((./@id = 'Participants' or contains(./@value, 'Participants')) or contains(./@title, 'Participants') or contains(normalize-space(string(.)), 'Participants'))])[1]" xpath node is not visible and it should be visible (Behat\Mink\Exception\ExpectationException)
       
      2 scenarios (2 failed)
      25 steps (10 passed, 2 failed, 13 skipped)
      0m45.20s (53.11Mb)
      

        Attachments

          Activity

            People

            Assignee:
            jpataleta Jun Pataleta
            Reporter:
            dobedobedoh Andrew Nicols
            Peer reviewer:
            Simey Lameze
            Integrator:
            Andrew Nicols
            Tester:
            Jake Dallimore
            Participants:
            Component watchers:
            Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Sara Arjona (@sarjona)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              13/Nov/17