File tree Expand file tree Collapse file tree 4 files changed +41
-0
lines changed Expand file tree Collapse file tree 4 files changed +41
-0
lines changed Original file line number Diff line number Diff line change @@ -31,6 +31,8 @@ group :development, :test do
31
31
gem 'rspec-rails'
32
32
gem 'capybara'
33
33
gem 'selenium-webdriver'
34
+ gem 'axe-core-rspec'
35
+ gem 'axe-core-capybara'
34
36
end
35
37
36
38
group :development do
Original file line number Diff line number Diff line change 62
62
zeitwerk (~> 2.3 )
63
63
addressable (2.7.0 )
64
64
public_suffix (>= 2.0.2 , < 5.0 )
65
+ axe-core-api (4.1.0 )
66
+ capybara
67
+ dumb_delegator
68
+ selenium-webdriver
69
+ virtus
70
+ watir
71
+ axe-core-capybara (4.1.0 )
72
+ axe-core-api
73
+ dumb_delegator
74
+ axe-core-rspec (4.1.0 )
75
+ axe-core-api
76
+ dumb_delegator
77
+ virtus
78
+ axiom-types (0.1.1 )
79
+ descendants_tracker (~> 0.0.4 )
80
+ ice_nine (~> 0.11.0 )
81
+ thread_safe (~> 0.3 , >= 0.3.1 )
65
82
bindex (0.8.1 )
66
83
bootsnap (1.7.3 )
67
84
msgpack (~> 1.0 )
76
93
regexp_parser (>= 1.5 , < 3.0 )
77
94
xpath (~> 3.2 )
78
95
childprocess (3.0.0 )
96
+ coercible (1.0.0 )
97
+ descendants_tracker (~> 0.0.1 )
79
98
concurrent-ruby (1.1.8 )
80
99
crass (1.0.6 )
100
+ descendants_tracker (0.0.4 )
101
+ thread_safe (~> 0.3 , >= 0.3.1 )
81
102
diff-lcs (1.4.4 )
103
+ dumb_delegator (1.0.0 )
104
+ equalizer (0.0.11 )
82
105
erubi (1.10.0 )
83
106
ffi (1.15.0 )
84
107
globalid (0.4.2 )
85
108
activesupport (>= 4.2.0 )
86
109
i18n (1.8.10 )
87
110
concurrent-ruby (~> 1.0 )
111
+ ice_nine (0.11.2 )
88
112
listen (3.5.1 )
89
113
rb-fsevent (~> 0.10 , >= 0.10.3 )
90
114
rb-inotify (~> 0.9 , >= 0.9.10 )
@@ -186,12 +210,21 @@ GEM
186
210
sprockets (>= 3.0.0 )
187
211
sqlite3 (1.4.2 )
188
212
thor (1.1.0 )
213
+ thread_safe (0.3.6 )
189
214
tilt (2.0.10 )
190
215
turbolinks (5.2.1 )
191
216
turbolinks-source (~> 5.2 )
192
217
turbolinks-source (5.2.0 )
193
218
tzinfo (2.0.4 )
194
219
concurrent-ruby (~> 1.0 )
220
+ virtus (1.0.5 )
221
+ axiom-types (~> 0.1 )
222
+ coercible (~> 1.0 )
223
+ descendants_tracker (~> 0.0 , >= 0.0.3 )
224
+ equalizer (~> 0.0 , >= 0.0.9 )
225
+ watir (6.19.1 )
226
+ regexp_parser (>= 1.2 , < 3 )
227
+ selenium-webdriver (>= 3.142.7 )
195
228
web-console (4.1.0 )
196
229
actionview (>= 6.0.0 )
197
230
activemodel (>= 6.0.0 )
@@ -213,6 +246,8 @@ PLATFORMS
213
246
arm64-darwin-20
214
247
215
248
DEPENDENCIES
249
+ axe-core-capybara
250
+ axe-core-rspec
216
251
bootsnap (>= 1.4.4 )
217
252
byebug
218
253
capybara
Original file line number Diff line number Diff line change 8
8
it 'is valid HTML' , js : true do
9
9
visit '/posts'
10
10
expect ( page ) . to have_content ( 'Hello, world!' )
11
+ expect ( page ) . to be_axe_clean
11
12
end
12
13
end
Original file line number Diff line number Diff line change 10
10
require 'capybara/rails'
11
11
require 'capybara/rspec'
12
12
13
+ require 'axe-rspec'
14
+ require 'axe-capybara'
15
+
13
16
# Requires supporting ruby files with custom matchers and macros, etc, in
14
17
# spec/support/ and its subdirectories. Files matching `spec/**/*_spec.rb` are
15
18
# run as spec files by default. This means that files in spec/support that end
You can’t perform that action at this time.
0 commit comments