testcentricity_web 2.1.3 → 2.1.4

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
  SHA1:
3
- metadata.gz: dbdb475e58d310a720cabb873258900160ec7519
4
- data.tar.gz: 8e3648793ab41e75a5e0506cc0a0ec7cab682f5b
3
+ metadata.gz: 65e991805e4626405ada3d8f1f2e1425ae0ef630
4
+ data.tar.gz: 8f2993072a8cabc5be0c3f75a7fe8105fde19ef0
5
5
  SHA512:
6
- metadata.gz: 9e2477c0ac49d7bad4394501c165dc6f2d4d0bdae6063ee945bc439f6effc56c0fadcc4bc13a0410528ae8b43c38664de22c50bf20a08f73a5b6eba124ebabc6
7
- data.tar.gz: db1dedaf53dbb28e74a546350c3e1eab0496b22dea147f51773a1ccb86e1126403468098b00bd452937c23792208a2ee8b86b4be8eedc7bac2ea6538530478d4
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
@@ -1,3 +1,3 @@
1
1
  module TestCentricityWeb
2
- VERSION = '2.1.3'
2
+ VERSION = '2.1.4'
3
3
  end
@@ -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.3
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-17 00:00:00.000000000 Z
11
+ date: 2017-10-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler