-
Improvement
-
Resolution: Duplicate
-
Minor
-
None
-
3.5.6, 3.6.4
-
MOODLE_35_STABLE, MOODLE_36_STABLE
Behat has a number of named selectors that make it easier to write readable and robust checks, for example:
When I click on "Preview" "link" in the "My first pattern match question" "table_row"
However, this list is currently fixed in core Moodle. Similar to MDL-48024, it should be possible for all plugins to contribute named selectors, so one could write things like
When I click on "Reply" "link" in the "Hello world" "mod_forum/post"
(that naming convetion is just a suggestion, but we already assume that Behat tests authors know Frankenstyle component names, for the @mod_forum tags we expect them to to .feature files.)
- duplicates
-
MDL-66559 Components should be able to define their own named selectors
- Closed
- has a non-specific relationship to
-
MDL-48024 Plugins should be able to provide data generators for Behat
- Closed
- has been marked as being related by
-
MDL-66335 Behat: new steps to navigate directly to a pages for any plugin, possibly while logging in
- Closed