govuk_test 0.3.1 → 0.4.0
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 -0
- data/lib/govuk_test.rb +9 -1
- data/lib/govuk_test/version.rb +1 -1
- metadata +17 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: df8035650ae1b95850ee9b552199424d23fe8a8c67e7e584fc54721d37cb51a1
|
4
|
+
data.tar.gz: 573a1a29f2f4c52bc4aab517c10f9390e31bf1dcde69406c99b93ed9bf121ff7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f39778d5299fed78e5cf601c3808937d88cbbb33a8077e7558010e2fb2de2d9351ffc5d2af8f4e1371b80e17892bae5ce385f8f716520c17eaecb28fb4e3b6bb
|
7
|
+
data.tar.gz: 489b093f4e95ead7a7407ae04fd80f6f52a92b7a3489ee0551a8593e7e2cf9f73ef58e1a5353b5f623c3dae953de5e8aed74e0626ff2ef613f59a82b002c25a3
|
data/CHANGELOG.md
CHANGED
@@ -7,6 +7,10 @@
|
|
7
7
|
useful summary for people upgrading their application, not a replication
|
8
8
|
of the commit log.
|
9
9
|
|
10
|
+
## 0.4.0
|
11
|
+
|
12
|
+
* Don't download chromedriver if it's already available.
|
13
|
+
|
10
14
|
## 0.3.1
|
11
15
|
|
12
16
|
* Revert "Don't force use of chromedriver-helper" - which seems to break apps in CI
|
data/govuk_test.gemspec
CHANGED
data/lib/govuk_test.rb
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
require "govuk_test/version"
|
2
2
|
|
3
3
|
require "capybara"
|
4
|
+
require "ptools"
|
4
5
|
require "puma"
|
5
|
-
require "chromedriver-helper"
|
6
6
|
require "selenium-webdriver"
|
7
7
|
|
8
8
|
module GovukTest
|
@@ -10,6 +10,14 @@ module GovukTest
|
|
10
10
|
chrome_options = %w(headless disable-gpu)
|
11
11
|
chrome_options << "--window-size=#{options[:window_size]}" if options[:window_size]
|
12
12
|
|
13
|
+
chromedriver_from_path = File.which("chromedriver")
|
14
|
+
if chromedriver_from_path
|
15
|
+
# Use the installed chromedriver, rather than chromedriver-helper
|
16
|
+
Selenium::WebDriver::Chrome.driver_path = chromedriver_from_path
|
17
|
+
else
|
18
|
+
require 'chromedriver-helper'
|
19
|
+
end
|
20
|
+
|
13
21
|
Capybara.register_driver :headless_chrome do |app|
|
14
22
|
capabilities = Selenium::WebDriver::Remote::Capabilities.chrome(
|
15
23
|
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
|
+
version: 0.4.0
|
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:
|
11
|
+
date: 2019-03-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: capybara
|
@@ -38,6 +38,20 @@ dependencies:
|
|
38
38
|
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: ptools
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
41
55
|
- !ruby/object:Gem::Dependency
|
42
56
|
name: puma
|
43
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -148,8 +162,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
148
162
|
- !ruby/object:Gem::Version
|
149
163
|
version: '0'
|
150
164
|
requirements: []
|
151
|
-
|
152
|
-
rubygems_version: 2.7.6
|
165
|
+
rubygems_version: 3.0.1
|
153
166
|
signing_key:
|
154
167
|
specification_version: 4
|
155
168
|
summary: Test setup for GOV.UK
|