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

Support title-less blocks in behat selector

XMLWordPrintable

      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.

            dmonllao David Monllaó
            poltawski Dan Poltawski
            Rajesh Taneja Rajesh Taneja
            Sam Hemelryk Sam Hemelryk
            CiBoT CiBoT
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

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