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

Behat feature "Student cannot edit another student's comment" randomly fails on phantomjs

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide

      Modify config path in following command and run it for few min to ensure it don't fail

      while [ $? -eq 0 ]; do vendor/bin/behat --config /home/rajesh/moodles/im/moodledata_behat/behat/behat.yml -p phantomjs-linux --name "Student cannot edit another student's comment"; done
      

      and

      while [ $? -eq 0 ]; do vendor/bin/behat --config /home/rajesh/moodles/im/moodledata_behat/behat/behat.yml -p phantomjs-linux --tags @mod_wiki; done
      

      Show
      Modify config path in following command and run it for few min to ensure it don't fail while [ $? -eq 0 ]; do vendor/bin/behat --config /home/rajesh/moodles/im/moodledata_behat/behat/behat.yml -p phantomjs-linux --name "Student cannot edit another student's comment"; done and while [ $? -eq 0 ]; do vendor/bin/behat --config /home/rajesh/moodles/im/moodledata_behat/behat/behat.yml -p phantomjs-linux --tags @mod_wiki; done
    • Affected Branches:
      MOODLE_27_STABLE, MOODLE_28_STABLE
    • Fixed Branches:
      MOODLE_27_STABLE, MOODLE_28_STABLE
    • Pull Master Branch:
      wip-mdl-48426

      Description

      "Student cannot edit another student's comment" steps keeps failing randomly on phantomjs.

      01. The "(//html/.//a[./@href][(((./@id = 'Log out' or contains(normalize-space(string(.)), 'Log out')) or contains(./@title, 'Log out') or contains(./@rel, 'Log out')) or .//img[contains(./@alt, 'Log out')])] | .//*[./@role = 'link'][((./@id = 'Log out' or contains(./@value, 'Log out')) or contains(./@title, 'Log out') or contains(normalize-space(string(.)), 'Log out'))])[1]" xpath node is not visible and it should be visible
          In step `When I follow "Log out"'.                             # behat_general::click_link()
          From scenario `Student cannot edit another student's comment'. # /var/lib/jenkins/moodle/behat_whole_suite_m28/mod/wiki/tests/behat/wiki_comments.feature:58
          Of feature `Users can comment on wiki pages'.                  # /var/lib/jenkins/moodle/behat_whole_suite_m28/mod/wiki/tests/behat/wiki_comments.feature
      

        Attachments

          Activity

            People

            • Assignee:
              rajeshtaneja Rajesh Taneja
              Reporter:
              rajeshtaneja Rajesh Taneja
              Peer reviewer:
              Dan Poltawski
              Integrator:
              Sam Hemelryk
              Tester:
              Simey Lameze
              Participants:
              Component watchers:
              Andrew Nicols, Mathew May, Michael Hawkins, Shamim Rezaie, Simey Lameze, Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona), Víctor Déniz Falcón
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                12/Jan/15