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

Boost Behat steps get confused when blocks have similar names

XMLWordPrintable

    • MOODLE_32_STABLE, MOODLE_33_STABLE
    • MOODLE_32_STABLE
    • wip-mdl-57765
    • Hide
      1. Modify pluginname in blocks/badges/lang/en/block_badges.php to "Courses Latest badges"
      2. Run following features and make sure they pass
        • my/tests/behat/restrict_available_blocks.feature
      Show
      Modify pluginname in blocks/badges/lang/en/block_badges.php to "Courses Latest badges" Run following features and make sure they pass my/tests/behat/restrict_available_blocks.feature

      This scenario:

      Scenario: Remove the ability to add the comments block to Dashboard
      

      And this step:

      And the add block selector should not contain "Courses" block
      

      Breaks when you have another block installed that has "Courses" as part of its name.

      I believe the solution is to update \behat_theme_boost_behat_blocks::the_add_block_selector_should_not_contain_block to use a "named_exact" selector, but all the selectors I found use "named_partial".

      It looks like (all the?) other methods in \behat_theme_boost_behat_blocks should get the same fix as well.

            rajeshtaneja Rajesh Taneja
            bushido Mark Nielsen (Inactive)
            Mark Nielsen Mark Nielsen (Inactive)
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            Jake Dallimore Jake Dallimore
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

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