mirror of
https://github.com/moodle/moodle.git
synced 2025-08-06 17:36:38 +02:00
MDL-44773 atto_accessibilitychecker: Improved image test coverage
This commit is contained in:
parent
61ebeec143
commit
680482d14a
1 changed files with 16 additions and 1 deletions
|
@ -6,10 +6,25 @@ Feature: Atto accessibility checker
|
||||||
Scenario: Images with no alt
|
Scenario: Images with no alt
|
||||||
Given I log in as "admin"
|
Given I log in as "admin"
|
||||||
And I navigate to "Edit profile" node in "My profile settings"
|
And I navigate to "Edit profile" node in "My profile settings"
|
||||||
And I set the field "Description" to "<p>Some plain text</p><img src='/broken-image'/><p>Some more text</p>"
|
And I set the field "Description" to "<p>Some plain text</p><img src='/broken-image' width='1' height='1'/><p>Some more text</p>"
|
||||||
When I click on "Show more buttons" "button"
|
When I click on "Show more buttons" "button"
|
||||||
And I click on "Accessibility checker" "button"
|
And I click on "Accessibility checker" "button"
|
||||||
Then I should see "Images require alternative text."
|
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
|
@javascript
|
||||||
Scenario: Low contrast
|
Scenario: Low contrast
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue