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

Incorrect xpath used in edit_activities feature.

XMLWordPrintable

    • MOODLE_31_STABLE
    • MOODLE_31_STABLE
    • wip-mdl-53564
    • Hide

      Run following features using chrome and phantomjs

      1. blocks/social_activities/tests/behat/edit_activities.feature
      2. blocks/site_main_menu/tests/behat/edit_activities.feature
      Show
      Run following features using chrome and phantomjs blocks/social_activities/tests/behat/edit_activities.feature blocks/site_main_menu/tests/behat/edit_activities.feature

      MDL-52869 introduced xpath with //. which selects the current node under the dom tree. This seems to have worked fine for Firefox, but is not correct as

      1. // means: Selects nodes in the document from the current node that match the selection no matter where they are
      2. . means: Selects the current node
        And they both will lead to wrong results. If you want to select any element from the current node then you should be using *.

            rajeshtaneja Rajesh Taneja
            rajeshtaneja Rajesh Taneja
            Dan Poltawski Dan Poltawski
            Simey Lameze Simey Lameze
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

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