testcentricity_web 2.1.3 → 2.1.4
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/README.md +5 -0
- data/lib/testcentricity_web/version.rb +1 -1
- data/lib/testcentricity_web/webdriver_helper.rb +10 -9
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 65e991805e4626405ada3d8f1f2e1425ae0ef630
|
|
4
|
+
data.tar.gz: 8f2993072a8cabc5be0c3f75a7fe8105fde19ef0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: eb5e46838887ac2bec5243f48a90210ed1ebaa2df4fbb319b383d2bc6b3789d3ba650af35c155abf498514df1e3ab2869cfba9b4c1219684c4486dea2be46290
|
|
7
|
+
data.tar.gz: e4b9e4ab6631200c3746cc78eeee404527389a29437d7cc42602e3db301b09c1b0e30bd250185b420a2a4177b4ed9fce2e63cd79e74e567ba410cd5eeb4414d1
|
data/README.md
CHANGED
|
@@ -23,6 +23,11 @@ feature incomplete and potentially unstable. More information can be found [here
|
|
|
23
23
|
|
|
24
24
|
|
|
25
25
|
## What's New
|
|
26
|
+
###Version 2.1.4
|
|
27
|
+
|
|
28
|
+
* Added suppression of the Info Bar on locally hosted instances of the Chrome browser.
|
|
29
|
+
|
|
30
|
+
|
|
26
31
|
###Version 2.1.3
|
|
27
32
|
|
|
28
33
|
* Added support for "tiling" or cascading multiple browser windows when the `BROWSER_TILE` and `PARALLEL` Environment Variables are set to true. For each
|
|
@@ -163,8 +163,7 @@ module TestCentricity
|
|
|
163
163
|
profile['intl.accept_languages'] = ENV['LOCALE'] if ENV['LOCALE']
|
|
164
164
|
Capybara::Selenium::Driver.new(app, :profile => profile)
|
|
165
165
|
when :chrome
|
|
166
|
-
args = []
|
|
167
|
-
args << "--user-agent='#{user_agent}'"
|
|
166
|
+
args = ["--user-agent='#{user_agent}'", '--disable-infobars']
|
|
168
167
|
if ENV['LOCALE']
|
|
169
168
|
profile = Selenium::WebDriver::Chrome::Profile.new
|
|
170
169
|
profile['intl.accept_languages'] = ENV['LOCALE']
|
|
@@ -408,6 +407,15 @@ module TestCentricity
|
|
|
408
407
|
end
|
|
409
408
|
|
|
410
409
|
def self.initialize_browser_size
|
|
410
|
+
# tile browser windows if running in multiple parallel threads and BROWSER_TILE environment variable is true
|
|
411
|
+
if ENV['PARALLEL'] && ENV['BROWSER_TILE']
|
|
412
|
+
thread = ENV['TEST_ENV_NUMBER'].to_i
|
|
413
|
+
if thread > 1
|
|
414
|
+
Browsers.set_browser_window_position(100 * thread - 1, 100 * thread - 1)
|
|
415
|
+
sleep(1)
|
|
416
|
+
end
|
|
417
|
+
end
|
|
418
|
+
|
|
411
419
|
browser = Environ.browser.to_s
|
|
412
420
|
if Environ.is_desktop?
|
|
413
421
|
if ENV['BROWSER_SIZE'] == 'max'
|
|
@@ -420,13 +428,6 @@ module TestCentricity
|
|
|
420
428
|
elsif Environ.is_mobile? && !Environ.is_device?
|
|
421
429
|
Browsers.set_browser_window_size(Browsers.browser_size(browser, ENV['ORIENTATION']))
|
|
422
430
|
end
|
|
423
|
-
# tile browser windows if running in multiple parallel threads and BROWSER_TILE environment variable is true
|
|
424
|
-
if ENV['PARALLEL'] && ENV['BROWSER_TILE']
|
|
425
|
-
thread = ENV['TEST_ENV_NUMBER'].to_i
|
|
426
|
-
if thread > 1
|
|
427
|
-
Browsers.set_browser_window_position(100 * thread - 1, 100 * thread - 1)
|
|
428
|
-
end
|
|
429
|
-
end
|
|
430
431
|
end
|
|
431
432
|
end
|
|
432
433
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: testcentricity_web
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.1.
|
|
4
|
+
version: 2.1.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- A.J. Mrozinski
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2017-10-
|
|
11
|
+
date: 2017-10-24 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|