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

Support title-less blocks in behat selector

    XMLWordPrintable

Details

    Description

      I'm not really an xpath expert...

      It looks to me that the block selector is looking for a <h2> of the block title.

      I'm writing a test for a block (course_summary) which doesn't have a title as a h2 - but instead it has an aria-label:

      <div id="inst67" class="block_course_summary  block no-header" role="complementary" data-block="course_summary" data-instanceid="67" aria-label="Course/site summary"><div class="content"><div class="block_action notitle"></div><div class="no-overflow"><p>Test Summary</p></div></div></div>
      

      Would be cool if we could support that - since it does have an ARIA-label.

      Attachments

        Issue Links

          Activity

            People

              dmonllao David Monllaó
              poltawski Dan Poltawski
              Rajesh Taneja Rajesh Taneja
              Sam Hemelryk Sam Hemelryk
              CiBoT CiBoT
              Andrew Lyons, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze, Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Sujith Haridasan
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                14/Jul/14