1 |
efrain |
1 |
@editor @editor_atto @atto @atto_accessibilityhelper
|
|
|
2 |
Feature: Atto accessibility helper
|
|
|
3 |
To use a screen reader effectively in Atto, I may need additional information about the text
|
|
|
4 |
|
|
|
5 |
@javascript
|
|
|
6 |
Scenario: Images and links
|
|
|
7 |
Given I log in as "admin"
|
|
|
8 |
And I open my profile in edit mode
|
|
|
9 |
And I set the field "Description" to "<p>Some plain text</p><img src='/broken-image' alt='Image 1'/><p><a href='#fsd'>Some link text</a></p>"
|
|
|
10 |
And I select the text in the "Description" Atto editor
|
|
|
11 |
When I click on "Show more buttons" "button"
|
|
|
12 |
And I click on "Screenreader helper" "button"
|
|
|
13 |
Then I should see "Links in text editor"
|
|
|
14 |
And I should see "Some link text"
|
|
|
15 |
And I should see "Images in text editor"
|
|
|
16 |
And I should see "Image 1"
|
|
|
17 |
And I should not see "No images"
|
|
|
18 |
And I should not see "No links"
|
|
|
19 |
|
|
|
20 |
@javascript
|
|
|
21 |
Scenario: Styles
|
|
|
22 |
Given I log in as "admin"
|
|
|
23 |
And I open my profile in edit mode
|
|
|
24 |
And I set the field "Description" to "<p>Some plain text</p>"
|
|
|
25 |
When I click on "Show more buttons" "button"
|
|
|
26 |
And I select the text in the "Description" Atto editor
|
|
|
27 |
And I click on "Unordered list" "button"
|
|
|
28 |
And I click on "Screenreader helper" "button"
|
|
|
29 |
And I select the text in the "Description" Atto editor
|
|
|
30 |
# This shows the current HTML tags applied to the selected text.
|
|
|
31 |
# This is required because they are not always read by a screen reader.
|
|
|
32 |
Then I should see "UL, LI"
|