govuk_test 0.4.2 → 0.4.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/govuk_test.gemspec +1 -2
- data/lib/govuk_test.rb +12 -8
- data/lib/govuk_test/version.rb +1 -1
- metadata +4 -18
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d0f3628dab9e72974434bd26d148789b60d2c1819cad8787f1fca3fe95cdea61
|
4
|
+
data.tar.gz: 388704d72c3a0d8954336f43134f261cfca5cd64af26afcdaa843d7f5b11c36b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0a58f7f9f6c0137deb7aaf1aacead1f0d3c00e66076af18cf35c346943d3bc701a6aa355c558e4e5f063e1e986df0ac3568b68096577b24d5f31b294c7302972
|
7
|
+
data.tar.gz: 5949ef24a42f58bc96c21e87cdce4312388bd9940c6511ad586fcdaeceff8e5c638bf7fea150270c5057abb879b5b08f9d418add1652907d19f0a05efcd32b4d
|
data/CHANGELOG.md
CHANGED
data/govuk_test.gemspec
CHANGED
@@ -23,8 +23,7 @@ Gem::Specification.new do |spec|
|
|
23
23
|
spec.require_paths = ["lib"]
|
24
24
|
|
25
25
|
spec.add_dependency "capybara"
|
26
|
-
spec.add_dependency "
|
27
|
-
spec.add_dependency "ptools"
|
26
|
+
spec.add_dependency "webdrivers"
|
28
27
|
spec.add_dependency "puma"
|
29
28
|
spec.add_dependency "selenium-webdriver"
|
30
29
|
|
data/lib/govuk_test.rb
CHANGED
@@ -1,22 +1,26 @@
|
|
1
1
|
require "govuk_test/version"
|
2
2
|
|
3
3
|
require "capybara"
|
4
|
-
require "ptools"
|
5
4
|
require "puma"
|
6
5
|
require "selenium-webdriver"
|
7
6
|
|
7
|
+
unless ENV['GOVUK_TEST_USE_SYSTEM_CHROMEDRIVER']
|
8
|
+
require 'webdrivers'
|
9
|
+
|
10
|
+
# This stop webdrivers doing a lazy check for new versions
|
11
|
+
# of chromedriver, which interferes with WebMock.disable_net_connect
|
12
|
+
if ::Selenium::WebDriver::Service.respond_to? :driver_path=
|
13
|
+
Selenium::WebDriver::Chrome::Service.driver_path = Webdrivers::Chromedriver.update
|
14
|
+
else
|
15
|
+
Selenium::WebDriver::Chrome.driver_path = Webdrivers::Chromedriver.update
|
16
|
+
end
|
17
|
+
end
|
18
|
+
|
8
19
|
module GovukTest
|
9
20
|
def self.configure(options = {})
|
10
21
|
chrome_options = %w(headless disable-gpu)
|
11
22
|
chrome_options << "--window-size=#{options[:window_size]}" if options[:window_size]
|
12
23
|
|
13
|
-
if ENV['GOVUK_TEST_USE_SYSTEM_CHROMEDRIVER']
|
14
|
-
# Use the installed chromedriver, rather than chromedriver-helper
|
15
|
-
Selenium::WebDriver::Chrome.driver_path = File.which("chromedriver")
|
16
|
-
else
|
17
|
-
require 'chromedriver-helper'
|
18
|
-
end
|
19
|
-
|
20
24
|
Capybara.register_driver :headless_chrome do |app|
|
21
25
|
capabilities = Selenium::WebDriver::Remote::Capabilities.chrome(
|
22
26
|
chromeOptions: { args: chrome_options }
|
data/lib/govuk_test/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: govuk_test
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- GOV.UK Dev
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-04-
|
11
|
+
date: 2019-04-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: capybara
|
@@ -25,21 +25,7 @@ dependencies:
|
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
|
-
name:
|
29
|
-
requirement: !ruby/object:Gem::Requirement
|
30
|
-
requirements:
|
31
|
-
- - ">="
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version: '0'
|
34
|
-
type: :runtime
|
35
|
-
prerelease: false
|
36
|
-
version_requirements: !ruby/object:Gem::Requirement
|
37
|
-
requirements:
|
38
|
-
- - ">="
|
39
|
-
- !ruby/object:Gem::Version
|
40
|
-
version: '0'
|
41
|
-
- !ruby/object:Gem::Dependency
|
42
|
-
name: ptools
|
28
|
+
name: webdrivers
|
43
29
|
requirement: !ruby/object:Gem::Requirement
|
44
30
|
requirements:
|
45
31
|
- - ">="
|
@@ -162,7 +148,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
162
148
|
- !ruby/object:Gem::Version
|
163
149
|
version: '0'
|
164
150
|
requirements: []
|
165
|
-
rubygems_version: 3.0.
|
151
|
+
rubygems_version: 3.0.3
|
166
152
|
signing_key:
|
167
153
|
specification_version: 4
|
168
154
|
summary: Test setup for GOV.UK
|