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

              Assignee:
              dmonllao David Monllaó
              Reporter:
              poltawski Dan Poltawski
              Peer reviewer:
              Rajesh Taneja
              Integrator:
              Sam Hemelryk
              Tester:
              CiBoT
              Participants:
              Component watchers:
              Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze, Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                14/Jul/14