MDL-76866 mod_data: Disable the HTML editor to insert partial HTML

This test is adding table rows into an HTML editor and, quite rightly,
is failing under TinyMCE.

This only worked under Atto because Atto does not perform any HTML
validation. A user would not actually be able to insert the template
content this way, and therefore the test is/was invalid.

This change disables the HTML editor before inserting the template
content, which resembles the actions of a real user.
This commit is contained in:
Andrew Nicols 2023-03-22 10:00:54 +08:00
parent 96fd7a83fb
commit 035d818dd3

View File

@ -37,6 +37,7 @@ Feature: Users can add the ##actionsmenu## replacement to the database templates
And I am on the "Test database name" "data activity" page logged in as teacher1
And I navigate to "Templates" in current page administration
And I set the field "Templates tertiary navigation" to "List view template"
And I set the field "Enable code editor" to "0"
And I set the following fields to these values:
| Header | <table> |
| Repeated entry | <tr><td>[[field1]]</td><td>##actionsmenu##</td><tr> |