bbc-a11y 0.0.2 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/LICENSE +1 -1
- data/bbc-a11y.gemspec +1 -1
- data/features/support/capybara.rb +9 -9
- data/lib/bbc/a11y/cucumber_runner.rb +10 -4
- data/lib/bbc/a11y/version +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 82eb6a1f3a994d50f7e2ea9fb28d11349521f334
|
|
4
|
+
data.tar.gz: 818c62e46ca97f207e21d892f894b2633ef2858d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6056e27d017d7b4595ab7cc85504827d13019f00e1b42257668a3952b314450b5d56ab2f4b99be1f3652ac838349ea833374f8501c556a8a58db2b21bbc24f08
|
|
7
|
+
data.tar.gz: 601bc446428bbcbbfb261dd8c2c378d0168b43a46e105292e3547d2a2606cefa3e0440a01620406d205919d037b6f3c42980f75bdebe6914335187568b27bb54
|
data/LICENSE
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
The MIT License (MIT)
|
|
2
2
|
|
|
3
|
-
Copyright (c) 2014
|
|
3
|
+
Copyright (c) 2014 Cucumber Limited
|
|
4
4
|
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
6
|
of this software and associated documentation files (the "Software"), to deal
|
data/bbc-a11y.gemspec
CHANGED
|
@@ -16,7 +16,7 @@ Gem::Specification.new do |s|
|
|
|
16
16
|
s.add_dependency 'cucumber', '~> 2.0.0.rc'
|
|
17
17
|
s.add_dependency 'rspec', '~> 3.0'
|
|
18
18
|
s.add_dependency 'capybara'
|
|
19
|
-
s.add_dependency '
|
|
19
|
+
s.add_dependency 'poltergeist'
|
|
20
20
|
s.add_dependency 'w3c_validators'
|
|
21
21
|
s.add_dependency 'cld'
|
|
22
22
|
s.add_dependency 'colorize'
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
require 'capybara'
|
|
2
2
|
require 'capybara/dsl'
|
|
3
|
-
require '
|
|
3
|
+
require 'capybara/poltergeist'
|
|
4
4
|
|
|
5
|
-
Capybara.register_driver(:without_javascript_or_css) do |app|
|
|
6
|
-
profile = Selenium::WebDriver::Firefox::Profile.new
|
|
7
|
-
profile['permissions.default.stylesheet'] = 2
|
|
8
|
-
profile['javascript.enabled'] = false
|
|
9
|
-
Capybara::Selenium::Driver.new(app, profile: profile)
|
|
10
|
-
end
|
|
5
|
+
#Capybara.register_driver(:without_javascript_or_css) do |app|
|
|
6
|
+
# profile = Selenium::WebDriver::Firefox::Profile.new
|
|
7
|
+
# profile['permissions.default.stylesheet'] = 2
|
|
8
|
+
# profile['javascript.enabled'] = false
|
|
9
|
+
# Capybara::Selenium::Driver.new(app, profile: profile)
|
|
10
|
+
#end
|
|
11
11
|
|
|
12
|
-
Capybara.default_driver = :
|
|
12
|
+
Capybara.default_driver = :poltergeist
|
|
13
13
|
|
|
14
14
|
Before do
|
|
15
15
|
Capybara.use_default_driver
|
|
@@ -28,7 +28,7 @@ module BBC
|
|
|
28
28
|
end
|
|
29
29
|
|
|
30
30
|
def disable_javascript_and_css
|
|
31
|
-
|
|
31
|
+
skip_this_scenario
|
|
32
32
|
end
|
|
33
33
|
end
|
|
34
34
|
|
|
@@ -22,11 +22,13 @@ module BBC
|
|
|
22
22
|
end
|
|
23
23
|
|
|
24
24
|
def after_test_case(test_case, result)
|
|
25
|
-
|
|
26
|
-
|
|
25
|
+
colour = ResultColour.new(result)
|
|
26
|
+
print colour.apply_to(result.to_s)
|
|
27
|
+
if result.failed? || result.pending? || result.skipped?
|
|
27
28
|
puts
|
|
28
|
-
puts
|
|
29
|
-
puts result.exception.
|
|
29
|
+
puts
|
|
30
|
+
puts colour.apply_to(result.exception.message.to_s)
|
|
31
|
+
puts colour.apply_to(result.exception.backtrace.join("\n"))
|
|
30
32
|
end
|
|
31
33
|
puts
|
|
32
34
|
end
|
|
@@ -67,6 +69,10 @@ module BBC
|
|
|
67
69
|
@color = :red
|
|
68
70
|
end
|
|
69
71
|
|
|
72
|
+
def undefined
|
|
73
|
+
@color = :yellow
|
|
74
|
+
end
|
|
75
|
+
|
|
70
76
|
def duration(*)
|
|
71
77
|
end
|
|
72
78
|
|
data/lib/bbc/a11y/version
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.0.
|
|
1
|
+
0.0.3
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: bbc-a11y
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Matt Wynne
|
|
@@ -54,7 +54,7 @@ dependencies:
|
|
|
54
54
|
- !ruby/object:Gem::Version
|
|
55
55
|
version: '0'
|
|
56
56
|
- !ruby/object:Gem::Dependency
|
|
57
|
-
name:
|
|
57
|
+
name: poltergeist
|
|
58
58
|
requirement: !ruby/object:Gem::Requirement
|
|
59
59
|
requirements:
|
|
60
60
|
- - ">="
|
|
@@ -239,7 +239,7 @@ rubyforge_project:
|
|
|
239
239
|
rubygems_version: 2.4.5
|
|
240
240
|
signing_key:
|
|
241
241
|
specification_version: 4
|
|
242
|
-
summary: bbc-a11y-0.0.
|
|
242
|
+
summary: bbc-a11y-0.0.3
|
|
243
243
|
test_files:
|
|
244
244
|
- features/01_core-purpose.md
|
|
245
245
|
- features/02_validation.feature
|