govuk_test 0.1.0 → 0.2.0
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/CHANGELOG.md +17 -0
- data/lib/govuk_test/version.rb +1 -1
- data/lib/govuk_test.rb +5 -2
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c139773f7c2d6e3070d1c4c2f1e1dbd9b20c64b6474fcc2e369518cc1c16d029
|
4
|
+
data.tar.gz: 83372a2bf69f16c36e656f4a17426ce521bbb98b09ddf22223ce6119d4589c01
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 040d2d0c989d72b556f5780a6fc95261536fab41e6e8f14ef61f5b6047a9fb9c1e8c2b6067d371ca602f9f7c8b3a8f7707a558f81b4bd555e6b6eeb2afd51214
|
7
|
+
data.tar.gz: 4c66907923c3b721fae37e091449690253fab76649b2128da957169009cd376814278b87100c3243b4d6626de3ff022b6b01bdf6820a84b96b932ea845081014
|
data/CHANGELOG.md
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
# Changelog
|
2
|
+
|
3
|
+
- We use the [GOV.UK versioning guidelines](https://docs.publishing.service.gov.uk/manual/publishing-a-ruby-gem.html#versioning).
|
4
|
+
- Mark breaking changes with `BREAKING:`. Be sure to include instructions on how applications should be upgraded.
|
5
|
+
- Include a link to your pull request.
|
6
|
+
- Don't include changes that are purely internal. The CHANGELOG should be a
|
7
|
+
useful summary for people upgrading their application, not a replication
|
8
|
+
of the commit log.
|
9
|
+
|
10
|
+
## 0.2.0
|
11
|
+
|
12
|
+
* Allow passing options to GovukTest.configure. Currently only `window_size` is supported. This is
|
13
|
+
passed to the chrome driver capabilites. eg. `GovukTest.configure(window_size: "1280,720")`.
|
14
|
+
|
15
|
+
## 0.1.0
|
16
|
+
|
17
|
+
* Initial version, configures selenium headless chrome javascript driver by default.
|
data/lib/govuk_test/version.rb
CHANGED
data/lib/govuk_test.rb
CHANGED
@@ -5,10 +5,13 @@ require "puma"
|
|
5
5
|
require "selenium-webdriver"
|
6
6
|
|
7
7
|
module GovukTest
|
8
|
-
def self.configure
|
8
|
+
def self.configure(options = {})
|
9
|
+
chrome_options = %w(headless disable-gpu)
|
10
|
+
chrome_options << "--window-size=#{options[:window_size]}" if options[:window_size]
|
11
|
+
|
9
12
|
Capybara.register_driver :headless_chrome do |app|
|
10
13
|
capabilities = Selenium::WebDriver::Remote::Capabilities.chrome(
|
11
|
-
chromeOptions: { args:
|
14
|
+
chromeOptions: { args: chrome_options }
|
12
15
|
)
|
13
16
|
|
14
17
|
Capybara::Selenium::Driver.new(
|
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.2.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: 2018-
|
11
|
+
date: 2018-09-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: capybara
|
@@ -118,6 +118,7 @@ files:
|
|
118
118
|
- ".gitignore"
|
119
119
|
- ".rspec"
|
120
120
|
- ".ruby-version"
|
121
|
+
- CHANGELOG.md
|
121
122
|
- Gemfile
|
122
123
|
- Jenkinsfile
|
123
124
|
- LICENSE.md
|