Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Not a bug
-
4.0.5, 4.1
-
None
-
MOODLE_400_STABLE, MOODLE_401_STABLE
-
MDL-76686-master
-
1
-
Team Hedgehog Sprint 1.3
-
Small
Description
Discovered while developing for MDL-75913.
With a scenario in Behat where an activity has been added, it is difficult to select the item as you would expect with And I click on "ipsumFile" "link"
Looking closely at the DOM, you will notice the activity name has an extra space added after its name. With exact matches of strings in Behat, this would require the clumsy use of "ipsumfile " (with a space).
I believe this is just a formatting issue in course/format/templates/local/content/cm/title.mustache
To replicate:
- Create an activity in a course
- Go back to the course page
- Use your code inspector and locate the activity hyperlink (nested somewhere in there)
- Notice the blank space after the activity name (.instancename)
- Depending on the activity you created, you may also notice a space before the activity type in another next span (.accesshide).
Should be really easy to fix and make selecting these items in Behat tests reliable.
Attachments
Issue Links
- blocks
-
MDL-75913 Investigate behat steps unnecessarily using Atto editor instead of generic generators
-
- Waiting for integration review
-