Commit 10baa463 authored by Paul Holden's avatar Paul Holden
Browse files

MDL-73038 course: remove course module title double encoding.

parent d135a120
......@@ -36,7 +36,7 @@
<a href="{{url}}" class="aalink {{linkclasses}}" onclick="{{{onclick}}}">
<img class="iconlarge activityicon" src="{{icon}}" alt="" role="presentation" aria-hidden="true" />
<span class="instancename">
{{instancename}} {{{altname}}}
{{{instancename}}} {{{altname}}}
</span>
</a>
{{/uservisible}}
......@@ -44,7 +44,7 @@
<div class="{{textclasses}}">
<img class="iconlarge activityicon" src="{{icon}}" alt="" role="presentation" aria-hidden="true" />
<span class="instancename">
{{instancename}} {{{altname}}}
{{{instancename}}} {{{altname}}}
</span>
</div>
{{/uservisible}}
......
......@@ -4,8 +4,7 @@ Feature: Edit activity name in-place
As a teacher
I need to use inplace editing
@javascript
Scenario: Edit activity name in-place
Background:
Given the following "users" exist:
| username | firstname | lastname | email |
| teacher1 | Teacher | 1 | teacher1@example.com |
......@@ -21,6 +20,9 @@ Feature: Edit activity name in-place
| name | Test forum name |
| description | Test forum description |
| idnumber | forum1 |
@javascript
Scenario: Edit activity name in-place
When I log in as "teacher1"
And I am on "Course 1" course homepage with editing mode on
# Rename activity
......@@ -41,3 +43,11 @@ Feature: Edit activity name in-place
And I am on "Course 1" course homepage
And I should see "Good news"
And I should not see "Terrible news"
@javascript
Scenario: Edit activity name in-place ensuring correct encoding
When I log in as "teacher1"
And I am on "Course 1" course homepage with editing mode on
And I set the field "Edit title" in the "Test forum name" "activity" to "Good & bad news"
Then I should not see "Test forum name" in the ".course-content" "css_element"
And I should see "Good & bad news" in the ".course-content" "css_element"
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment