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

    • MOODLE_27_STABLE, MOODLE_28_STABLE
    • MOODLE_27_STABLE, MOODLE_28_STABLE
    • wip-mdl-48426
    • 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

    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

            rajeshtaneja Rajesh Taneja
            rajeshtaneja Rajesh Taneja
            Dan Poltawski Dan Poltawski
            Sam Hemelryk Sam Hemelryk
            Simey Lameze Simey Lameze
            Amaia Anabitarte, Carlos Escobedo, Laurent David, Sabina Abellan, Sara Arjona (@sarjona)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              12/Jan/15