Show
You'd need the WAVE browser extension for this test
Test 1
Log in as admin
Go to 'Site administration > Courses' and click on 'Add a new course' link
View source of the page (usually ctrl+u)
Copy the source
Visit https://validator.w3.org/nu/
Set the check by field to 'text input' and replace the content of the text editor with what you copied on step 4
Press the 'check' button
Press the 'message filtering' button
Verify that you don't see any errors (except for the missing alt attribute for the user profile image).
Test 2
Log in as admin
Go to 'Site administration > Courses' and click on 'Add a new course' link
Press the WAVE icon on your browser
Verify that you do not see any:
'Orphaned form label' warning
'Missing fieldset' warning
Test 3: Regression Test for MDL-60975
Install the attached plugin ( mdl60975.zip ) to the local folder
Initialise Behat.
Run Behat tests for the " @local_mdl60975 " tag
php admin/tool/behat/cli/run.php --tags=@local_mdl60975
Confirm that both tests, one for the filepicker added by mform and one added by admin config, are all passing