sauce_bindings 1.1.0 → 1.1.1
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/.rubocop.yml +2 -2
- data/lib/sauce_bindings.rb +7 -0
- data/lib/sauce_bindings/base_configurations.rb +9 -0
- data/lib/sauce_bindings/chrome_configurations.rb +9 -0
- data/lib/sauce_bindings/edge_configurations.rb +9 -0
- data/lib/sauce_bindings/firefox_configurations.rb +9 -0
- data/lib/sauce_bindings/ie_configurations.rb +9 -0
- data/lib/sauce_bindings/options.rb +117 -47
- data/lib/sauce_bindings/safari_configurations.rb +9 -0
- data/lib/sauce_bindings/session.rb +1 -1
- data/lib/sauce_bindings/vdc_configurations.rb +13 -0
- data/lib/sauce_bindings/version.rb +1 -1
- data/sauce_bindings.gemspec +4 -3
- data/spec/deprecated_options.yml +56 -0
- data/spec/examples/basic_options_spec.rb +1 -3
- data/spec/examples/browser_options_spec.rb +0 -2
- data/spec/examples/create_session_spec.rb +0 -2
- data/spec/examples/data_center_spec.rb +0 -2
- data/spec/examples/sauce_options_spec.rb +0 -2
- data/spec/integration/desktop_spec.rb +10 -15
- data/spec/options.yml +4 -8
- data/spec/spec_helper.rb +4 -0
- data/spec/unit/capybara_session_spec.rb +8 -4
- data/spec/unit/deprecated_options_spec.rb +472 -0
- data/spec/unit/options_spec.rb +339 -210
- data/spec/unit/session_spec.rb +10 -6
- metadata +19 -14
data/spec/unit/session_spec.rb
CHANGED
@@ -16,9 +16,13 @@ module SauceBindings
|
|
16
16
|
'sauce:options': {build: 'TEMP BUILD: 11'}}
|
17
17
|
end
|
18
18
|
|
19
|
-
def expect_request
|
20
|
-
|
21
|
-
|
19
|
+
def expect_request
|
20
|
+
se3 = {desiredCapabilities: default_capabilities,
|
21
|
+
capabilities: {firstMatch: [default_capabilities]}}.to_json
|
22
|
+
se4 = {capabilities: {alwaysMatch: default_capabilities}}.to_json
|
23
|
+
|
24
|
+
body = Selenium::WebDriver::VERSION[0] == '3' ? se3 : se4
|
25
|
+
|
22
26
|
endpoint ||= 'https://ondemand.us-west-1.saucelabs.com/wd/hub/session'
|
23
27
|
stub_request(:post, endpoint).with(body: body).to_return(valid_response)
|
24
28
|
end
|
@@ -45,9 +49,9 @@ module SauceBindings
|
|
45
49
|
end
|
46
50
|
|
47
51
|
it 'uses provided Options class' do
|
48
|
-
sauce_opts = Options.
|
49
|
-
|
50
|
-
|
52
|
+
sauce_opts = Options.chrome(browser_version: '123',
|
53
|
+
platform_name: 'Mac',
|
54
|
+
idle_timeout: 4)
|
51
55
|
session = Session.new(sauce_opts)
|
52
56
|
|
53
57
|
expected_results = {url: 'https://foo:123@ondemand.us-west-1.saucelabs.com:443/wd/hub',
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sauce_bindings
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Titus Fortner
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-07-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -72,14 +72,14 @@ dependencies:
|
|
72
72
|
requirements:
|
73
73
|
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: '0
|
75
|
+
version: '1.0'
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: '0
|
82
|
+
version: '1.0'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: rubocop-performance
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
@@ -100,14 +100,14 @@ dependencies:
|
|
100
100
|
requirements:
|
101
101
|
- - "~>"
|
102
102
|
- !ruby/object:Gem::Version
|
103
|
-
version: '
|
103
|
+
version: '2.0'
|
104
104
|
type: :development
|
105
105
|
prerelease: false
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
108
|
- - "~>"
|
109
109
|
- !ruby/object:Gem::Version
|
110
|
-
version: '
|
110
|
+
version: '2.0'
|
111
111
|
- !ruby/object:Gem::Dependency
|
112
112
|
name: webmock
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|
@@ -140,9 +140,6 @@ dependencies:
|
|
140
140
|
name: selenium-webdriver
|
141
141
|
requirement: !ruby/object:Gem::Requirement
|
142
142
|
requirements:
|
143
|
-
- - "~>"
|
144
|
-
- !ruby/object:Gem::Version
|
145
|
-
version: 3.142.0
|
146
143
|
- - ">="
|
147
144
|
- !ruby/object:Gem::Version
|
148
145
|
version: 3.142.7
|
@@ -150,9 +147,6 @@ dependencies:
|
|
150
147
|
prerelease: false
|
151
148
|
version_requirements: !ruby/object:Gem::Requirement
|
152
149
|
requirements:
|
153
|
-
- - "~>"
|
154
|
-
- !ruby/object:Gem::Version
|
155
|
-
version: 3.142.0
|
156
150
|
- - ">="
|
157
151
|
- !ruby/object:Gem::Version
|
158
152
|
version: 3.142.7
|
@@ -172,11 +166,19 @@ files:
|
|
172
166
|
- README.md
|
173
167
|
- Rakefile
|
174
168
|
- lib/sauce_bindings.rb
|
169
|
+
- lib/sauce_bindings/base_configurations.rb
|
175
170
|
- lib/sauce_bindings/capybara_session.rb
|
171
|
+
- lib/sauce_bindings/chrome_configurations.rb
|
172
|
+
- lib/sauce_bindings/edge_configurations.rb
|
173
|
+
- lib/sauce_bindings/firefox_configurations.rb
|
174
|
+
- lib/sauce_bindings/ie_configurations.rb
|
176
175
|
- lib/sauce_bindings/options.rb
|
176
|
+
- lib/sauce_bindings/safari_configurations.rb
|
177
177
|
- lib/sauce_bindings/session.rb
|
178
|
+
- lib/sauce_bindings/vdc_configurations.rb
|
178
179
|
- lib/sauce_bindings/version.rb
|
179
180
|
- sauce_bindings.gemspec
|
181
|
+
- spec/deprecated_options.yml
|
180
182
|
- spec/examples/basic_options_spec.rb
|
181
183
|
- spec/examples/browser_options_spec.rb
|
182
184
|
- spec/examples/create_session_spec.rb
|
@@ -186,6 +188,7 @@ files:
|
|
186
188
|
- spec/options.yml
|
187
189
|
- spec/spec_helper.rb
|
188
190
|
- spec/unit/capybara_session_spec.rb
|
191
|
+
- spec/unit/deprecated_options_spec.rb
|
189
192
|
- spec/unit/options_spec.rb
|
190
193
|
- spec/unit/session_spec.rb
|
191
194
|
homepage: https://github.com/saucelabs/sauce_bindings
|
@@ -200,18 +203,19 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
200
203
|
requirements:
|
201
204
|
- - ">="
|
202
205
|
- !ruby/object:Gem::Version
|
203
|
-
version:
|
206
|
+
version: 2.5.0
|
204
207
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
205
208
|
requirements:
|
206
209
|
- - ">="
|
207
210
|
- !ruby/object:Gem::Version
|
208
211
|
version: '0'
|
209
212
|
requirements: []
|
210
|
-
rubygems_version: 3.
|
213
|
+
rubygems_version: 3.2.11
|
211
214
|
signing_key:
|
212
215
|
specification_version: 4
|
213
216
|
summary: Simple interface for interacting with Sauce Labs.
|
214
217
|
test_files:
|
218
|
+
- spec/deprecated_options.yml
|
215
219
|
- spec/examples/basic_options_spec.rb
|
216
220
|
- spec/examples/browser_options_spec.rb
|
217
221
|
- spec/examples/create_session_spec.rb
|
@@ -221,5 +225,6 @@ test_files:
|
|
221
225
|
- spec/options.yml
|
222
226
|
- spec/spec_helper.rb
|
223
227
|
- spec/unit/capybara_session_spec.rb
|
228
|
+
- spec/unit/deprecated_options_spec.rb
|
224
229
|
- spec/unit/options_spec.rb
|
225
230
|
- spec/unit/session_spec.rb
|