sauce_bindings 1.1.0 → 1.2.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/CHANGES.md +34 -0
- data/README.md +1 -1
- data/Rakefile +13 -1
- 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 +7 -1
- data/lib/sauce_bindings/vdc_configurations.rb +13 -0
- data/lib/sauce_bindings/version.rb +1 -1
- data/lib/sauce_bindings.rb +7 -0
- data/sauce_bindings.gemspec +5 -3
- data/spec/deprecated_options.yml +56 -0
- data/spec/examples/accessibility_spec.rb +32 -0
- data/spec/examples/axe.min.js +1 -0
- data/spec/examples/browser_options_spec.rb +2 -4
- data/spec/examples/{basic_options_spec.rb → common_options_spec.rb} +5 -6
- 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 +1 -3
- data/spec/integration/accessibility_spec.rb +59 -0
- data/spec/integration/desktop_spec.rb +18 -14
- 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 +45 -19
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.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Titus Fortner
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-03-01 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
|
@@ -122,6 +122,20 @@ dependencies:
|
|
122
122
|
- - "~>"
|
123
123
|
- !ruby/object:Gem::Version
|
124
124
|
version: '3.5'
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: sa11y
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - "~>"
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: 0.2.0
|
132
|
+
type: :runtime
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - "~>"
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: 0.2.0
|
125
139
|
- !ruby/object:Gem::Dependency
|
126
140
|
name: sauce_whisk
|
127
141
|
requirement: !ruby/object:Gem::Requirement
|
@@ -140,9 +154,6 @@ dependencies:
|
|
140
154
|
name: selenium-webdriver
|
141
155
|
requirement: !ruby/object:Gem::Requirement
|
142
156
|
requirements:
|
143
|
-
- - "~>"
|
144
|
-
- !ruby/object:Gem::Version
|
145
|
-
version: 3.142.0
|
146
157
|
- - ">="
|
147
158
|
- !ruby/object:Gem::Version
|
148
159
|
version: 3.142.7
|
@@ -150,9 +161,6 @@ dependencies:
|
|
150
161
|
prerelease: false
|
151
162
|
version_requirements: !ruby/object:Gem::Requirement
|
152
163
|
requirements:
|
153
|
-
- - "~>"
|
154
|
-
- !ruby/object:Gem::Version
|
155
|
-
version: 3.142.0
|
156
164
|
- - ">="
|
157
165
|
- !ruby/object:Gem::Version
|
158
166
|
version: 3.142.7
|
@@ -167,32 +175,45 @@ files:
|
|
167
175
|
- ".rspec"
|
168
176
|
- ".rubocop.yml"
|
169
177
|
- ".travis.yml"
|
178
|
+
- CHANGES.md
|
170
179
|
- Gemfile
|
171
180
|
- LICENSE.txt
|
172
181
|
- README.md
|
173
182
|
- Rakefile
|
174
183
|
- lib/sauce_bindings.rb
|
184
|
+
- lib/sauce_bindings/base_configurations.rb
|
175
185
|
- lib/sauce_bindings/capybara_session.rb
|
186
|
+
- lib/sauce_bindings/chrome_configurations.rb
|
187
|
+
- lib/sauce_bindings/edge_configurations.rb
|
188
|
+
- lib/sauce_bindings/firefox_configurations.rb
|
189
|
+
- lib/sauce_bindings/ie_configurations.rb
|
176
190
|
- lib/sauce_bindings/options.rb
|
191
|
+
- lib/sauce_bindings/safari_configurations.rb
|
177
192
|
- lib/sauce_bindings/session.rb
|
193
|
+
- lib/sauce_bindings/vdc_configurations.rb
|
178
194
|
- lib/sauce_bindings/version.rb
|
179
195
|
- sauce_bindings.gemspec
|
180
|
-
- spec/
|
196
|
+
- spec/deprecated_options.yml
|
197
|
+
- spec/examples/accessibility_spec.rb
|
198
|
+
- spec/examples/axe.min.js
|
181
199
|
- spec/examples/browser_options_spec.rb
|
200
|
+
- spec/examples/common_options_spec.rb
|
182
201
|
- spec/examples/create_session_spec.rb
|
183
202
|
- spec/examples/data_center_spec.rb
|
184
203
|
- spec/examples/sauce_options_spec.rb
|
204
|
+
- spec/integration/accessibility_spec.rb
|
185
205
|
- spec/integration/desktop_spec.rb
|
186
206
|
- spec/options.yml
|
187
207
|
- spec/spec_helper.rb
|
188
208
|
- spec/unit/capybara_session_spec.rb
|
209
|
+
- spec/unit/deprecated_options_spec.rb
|
189
210
|
- spec/unit/options_spec.rb
|
190
211
|
- spec/unit/session_spec.rb
|
191
212
|
homepage: https://github.com/saucelabs/sauce_bindings
|
192
213
|
licenses:
|
193
214
|
- MIT
|
194
215
|
metadata: {}
|
195
|
-
post_install_message:
|
216
|
+
post_install_message:
|
196
217
|
rdoc_options: []
|
197
218
|
require_paths:
|
198
219
|
- lib
|
@@ -200,26 +221,31 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
200
221
|
requirements:
|
201
222
|
- - ">="
|
202
223
|
- !ruby/object:Gem::Version
|
203
|
-
version:
|
224
|
+
version: 2.5.0
|
204
225
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
205
226
|
requirements:
|
206
227
|
- - ">="
|
207
228
|
- !ruby/object:Gem::Version
|
208
229
|
version: '0'
|
209
230
|
requirements: []
|
210
|
-
rubygems_version: 3.
|
211
|
-
signing_key:
|
231
|
+
rubygems_version: 3.1.2
|
232
|
+
signing_key:
|
212
233
|
specification_version: 4
|
213
234
|
summary: Simple interface for interacting with Sauce Labs.
|
214
235
|
test_files:
|
215
|
-
- spec/
|
236
|
+
- spec/deprecated_options.yml
|
237
|
+
- spec/examples/accessibility_spec.rb
|
238
|
+
- spec/examples/axe.min.js
|
216
239
|
- spec/examples/browser_options_spec.rb
|
240
|
+
- spec/examples/common_options_spec.rb
|
217
241
|
- spec/examples/create_session_spec.rb
|
218
242
|
- spec/examples/data_center_spec.rb
|
219
243
|
- spec/examples/sauce_options_spec.rb
|
244
|
+
- spec/integration/accessibility_spec.rb
|
220
245
|
- spec/integration/desktop_spec.rb
|
221
246
|
- spec/options.yml
|
222
247
|
- spec/spec_helper.rb
|
223
248
|
- spec/unit/capybara_session_spec.rb
|
249
|
+
- spec/unit/deprecated_options_spec.rb
|
224
250
|
- spec/unit/options_spec.rb
|
225
251
|
- spec/unit/session_spec.rb
|