govuk_test 0.1.0 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 70bff02c8d9171113b81c2b0495f4f38dc4d215274471178c12232fed44d7694
4
- data.tar.gz: 12b4807b751d63ae52638c66c68fe6f7b41d8b199523df4ae8003102f9d66d29
3
+ metadata.gz: c139773f7c2d6e3070d1c4c2f1e1dbd9b20c64b6474fcc2e369518cc1c16d029
4
+ data.tar.gz: 83372a2bf69f16c36e656f4a17426ce521bbb98b09ddf22223ce6119d4589c01
5
5
  SHA512:
6
- metadata.gz: 7248a65457d801e5964d258ba0af6740e8bbf7a78bbb92e62c9c9285bcd0e24dbe7d35d36bc0282c649239a022409a55cc1f5c6d80511dd204743b2b76d53024
7
- data.tar.gz: f51b08404f927b23a5e049e82e4b0a367bdd51fd5a1fd8709ef33c0155b4b449fd682d74ffbabbe55d3197286a1c716852ee702c998fe1654048325f662448b2
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.
@@ -1,3 +1,3 @@
1
1
  module GovukTest
2
- VERSION = "0.1.0"
2
+ VERSION = "0.2.0"
3
3
  end
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: %w(headless disable-gpu) }
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.1.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-07-18 00:00:00.000000000 Z
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