@@ -5,8 +5,7 @@ Feature: Atto accessibility checker
5
5
@javascript
6
6
Scenario : Images with no alt
7
7
Given I log in as "admin"
8
- And I follow "Profile" in the user menu
9
- And I click on "Edit profile" "link" in the "region-main" "region"
8
+ And I open my profile in edit mode
10
9
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>"
11
10
When I click on "Show more buttons" "button"
12
11
And I click on "Accessibility checker" "button"
@@ -31,8 +30,7 @@ Feature: Atto accessibility checker
31
30
@javascript
32
31
Scenario : Low contrast
33
32
Given I log in as "admin"
34
- And I follow "Profile" in the user menu
35
- And I click on "Edit profile" "link" in the "region-main" "region"
33
+ And I open my profile in edit mode
36
34
And I set the field "Description" to "<p style='color: #7c7cff; background-color: #ffffff;'>Hard to read</p>"
37
35
When I click on "Show more buttons" "button"
38
36
And I click on "Accessibility checker" "button"
@@ -41,8 +39,7 @@ Feature: Atto accessibility checker
41
39
@javascript
42
40
Scenario : No headings
43
41
Given I log in as "admin"
44
- And I follow "Profile" in the user menu
45
- And I click on "Edit profile" "link" in the "region-main" "region"
42
+ And I open my profile in edit mode
46
43
And I set the field "Description" to "<p>Sweet roll oat cake jelly-o macaroon donut oat cake. Caramels macaroon cookie sweet roll croissant cheesecake candy jelly-o. Gummies sugar plum sugar plum gingerbread dessert. Tiramisu bonbon jujubes danish marshmallow cookie chocolate cake cupcake tiramisu. Bear claw oat cake chocolate bar croissant. Lollipop cookie topping liquorice croissant. Brownie cookie cupcake lollipop cupcake cupcake. Fruitcake dessert sweet biscuit dragée caramels marzipan brownie. Chupa chups gingerbread apple pie cookie liquorice caramels carrot cake cookie gingerbread. Croissant candy jelly beans. Tiramisu apple pie dessert apple pie macaroon soufflé. Brownie powder carrot cake chocolate. Tart applicake croissant dragée macaroon chocolate donut.</p><p>Jelly beans gingerbread tootsie roll. Sugar plum tiramisu cotton candy toffee pie cotton candy tiramisu. Carrot cake chocolate bar sesame snaps cupcake cake dessert sweet fruitcake wafer. Marshmallow cupcake gingerbread pie sweet candy canes powder gummi bears. Jujubes cake muffin marshmallow candy jelly beans tootsie roll pie. Gummi bears applicake chocolate cake sweet jelly sesame snaps lollipop lollipop carrot cake. Marshmallow cake jelly beans. Jelly beans sesame snaps muffin halvah cookie ice cream candy canes carrot cake. Halvah donut marshmallow tiramisu. Cookie dessert gummi bears. Sugar plum apple pie jelly beans gummi bears tart chupa chups. Liquorice macaroon gummi bears gummies macaroon marshmallow sweet roll cake topping. Lemon drops caramels pie icing danish. Chocolate cake oat cake dessert halvah danish carrot cake apple pie.</p>"
47
44
When I click on "Show more buttons" "button"
48
45
And I click on "Accessibility checker" "button"
@@ -51,8 +48,7 @@ Feature: Atto accessibility checker
51
48
@javascript
52
49
Scenario : Merged cells
53
50
Given I log in as "admin"
54
- And I follow "Profile" in the user menu
55
- And I click on "Edit profile" "link" in the "region-main" "region"
51
+ And I open my profile in edit mode
56
52
And I set the field "Description" to "<table><caption>Dogs that look good in pants</caption><tr><th>Breed</th><th>Coolness</th></tr><tr><td>Poodle</td><td rowspan='2'>NOT COOL</td></tr><tr><td>Doberman</td></tr></table>"
57
53
When I click on "Show more buttons" "button"
58
54
And I click on "Accessibility checker" "button"
@@ -61,8 +57,7 @@ Feature: Atto accessibility checker
61
57
@javascript
62
58
Scenario : Table missing row/column headers
63
59
Given I log in as "admin"
64
- And I follow "Profile" in the user menu
65
- And I click on "Edit profile" "link" in the "region-main" "region"
60
+ And I open my profile in edit mode
66
61
And I set the field "Description" to "<table><caption>Dogs that look good in pants</caption><tr><th>Breed</th><td>Coolness</td></tr><tr><td>Poodle</td><td>NOT COOL</td></tr><tr><td>Doberman</td><td>COOL</td></tr></table>"
67
62
When I click on "Show more buttons" "button"
68
63
And I click on "Accessibility checker" "button"
@@ -71,8 +66,7 @@ Feature: Atto accessibility checker
71
66
@javascript
72
67
Scenario : Table missing caption
73
68
Given I log in as "admin"
74
- And I follow "Profile" in the user menu
75
- And I click on "Edit profile" "link" in the "region-main" "region"
69
+ And I open my profile in edit mode
76
70
And I set the field "Description" to "<table><tr><th>Breed</th><th>Coolness</th></tr><tr><td>Poodle</td><td>NOT COOL</td></tr><tr><td>Doberman</td><td>COOL</td></tr></table>"
77
71
When I click on "Show more buttons" "button"
78
72
And I click on "Accessibility checker" "button"
0 commit comments