From 680482d14a9bcc02f87881aff3958d21aeb96c56 Mon Sep 17 00:00:00 2001 From: Frederic Massart Date: Thu, 19 Jun 2014 13:38:12 +0800 Subject: [PATCH] MDL-44773 atto_accessibilitychecker: Improved image test coverage --- .../tests/behat/accessibilitychecker.feature | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/lib/editor/atto/plugins/accessibilitychecker/tests/behat/accessibilitychecker.feature b/lib/editor/atto/plugins/accessibilitychecker/tests/behat/accessibilitychecker.feature index c456bc6c32a..a861bd85f67 100644 --- a/lib/editor/atto/plugins/accessibilitychecker/tests/behat/accessibilitychecker.feature +++ b/lib/editor/atto/plugins/accessibilitychecker/tests/behat/accessibilitychecker.feature @@ -6,10 +6,25 @@ Feature: Atto accessibility checker Scenario: Images with no alt Given I log in as "admin" And I navigate to "Edit profile" node in "My profile settings" - And I set the field "Description" to "

Some plain text

Some more text

" + And I set the field "Description" to "

Some plain text

Some more text

" When I click on "Show more buttons" "button" And I click on "Accessibility checker" "button" Then I should see "Images require alternative text." + And I follow "/broken-image" + And I wait "2" seconds + And I click on "Image" "button" + And the field "Enter URL" matches value "/broken-image" + And I set the field "Describe this image" to "No more warning!" + And I press "Save image" + And I press "Accessibility checker" + And I should see "Congratulations, no accessibility problems found!" + And I select the text in the "Description" Atto editor + And I click on "Image" "button" + And I set the field "Describe this image" to "" + And I set the field "Description not necessary" to "1" + And I press "Save image" + And I press "Accessibility checker" + And I should see "Congratulations, no accessibility problems found!" @javascript Scenario: Low contrast