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

Invalid xpath in grade tests

    XMLWordPrintable

Details

    • MOODLE_35_STABLE, MOODLE_37_STABLE, MOODLE_38_STABLE, MOODLE_39_STABLE
    • MOODLE_35_STABLE, MOODLE_37_STABLE, MOODLE_38_STABLE, MOODLE_39_STABLE
    • MDL-69149-master
    • Hide

      CI will test this but you can test it with
      Run the following behat tests on CHrome and Firefox:

      grade/tests/behat/grade_calculated_grade_items_20150627.feature
      

      Show
      CI will test this but you can test it with Run the following behat tests on CHrome and Firefox: grade/tests/behat/grade_calculated_grade_items_20150627.feature

    Description

      No idea why this doesn't fail on chrome or old firefox but it fails with newer versions of firefox.

      We have an invalid xpath!

      //input[@class='idnumber'][parent::li[@class='item'][text()='grade item 1'] | parent::li[@class='categoryitem' | @class='courseitem']/parent::ul/parent::li[starts-with(text(),'grade item 1')]]
      

      The following part is invalid:

      li[@class='categoryitem' | @class='courseitem']
      

      You can't use a pipe for an attribute alternative.

      Attachments

        Issue Links

          Activity

            People

              dobedobedoh Andrew Lyons
              dobedobedoh Andrew Lyons
              Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
              Jake Dallimore Jake Dallimore
              CiBoT CiBoT
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 hour, 15 minutes
                  1h 15m

                  Clockify

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