mediawiki-selenium 0.1.5 → 0.1.6

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: 361247fe0052772a7a6132a0cd90913391202019
4
- data.tar.gz: 5b41f1a87eaa3b44faa84c75b1603cd672743f72
3
+ metadata.gz: 7c9aa3028b502f10f1f052bf93f9011289524713
4
+ data.tar.gz: 567b2fcc13afb7e0c8b91285bb1231597ce589f7
5
5
  SHA512:
6
- metadata.gz: 94e433f92cd2bd328f389a16225546175d321ab4cf8dd0b83ea9839e52b4a624993706649a7aedfe422d812fad583017e95007426b93c3171095590a9030120f
7
- data.tar.gz: 5bf1e67888726e8b7b2a52f81105098915aca6b57cb1bc330f8067f1c4c1ba784e45da13bf8543603d236ab9b64815bd8f7d40d7eb11fbf717aaae6337b4032f
6
+ metadata.gz: 5104559f73f221f824c70ae1710ff120ef5347fcd5bbf800ac33706154471d75a852c0ed7131d8c34ab29442127fc7e3cd595e4da7d03b8b16b1e0c88312d4e3
7
+ data.tar.gz: 657b5130898f4ebdea0543a6c7ad62f5cb4dfe3e1d7b62a1a13aa26723ae587d895fe4b8c053fcda34899b42b02198f24ad9f3eeb37e9adbfd086ce0e7218e3b
@@ -19,9 +19,14 @@ end
19
19
  Before do |scenario|
20
20
  @config = config
21
21
  @random_string = Random.new.rand.to_s
22
- unless @language # only UniversalLanguageSelector needs this
23
- @browser = browser(environment, test_name(scenario), 'default')
24
- $session_id = @browser.driver.instance_variable_get(:@bridge).session_id
22
+ if ENV['REUSE_BROWSER'] == 'true' and $browser # only CirrusSearch needs this
23
+ @browser = $browser
24
+ else
25
+ unless @language # only UniversalLanguageSelector needs this
26
+ @browser = browser(environment, test_name(scenario), 'default')
27
+ $browser = @browser # only CirrusSearch needs this
28
+ $session_id = @browser.driver.instance_variable_get(:@bridge).session_id
29
+ end
25
30
  end
26
31
  end
27
32
 
@@ -30,5 +35,5 @@ After do |scenario|
30
35
  sauce_api(%Q{{"passed": #{scenario.passed?}}})
31
36
  sauce_api(%Q{{"public": true}})
32
37
  end
33
- @browser.close unless ENV['KEEP_BROWSER_OPEN'] == 'true'
38
+ @browser.close unless ENV['KEEP_BROWSER_OPEN'] == 'true' or ENV['REUSE_BROWSER'] == 'true' # only CirrusSearch needs ENV['REUSE_BROWSER']
34
39
  end
@@ -11,6 +11,6 @@ https://github.com/zeljkofilipin/mediawiki-selenium/blob/master//CREDITS.
11
11
 
12
12
  module Mediawiki
13
13
  module Selenium
14
- VERSION = "0.1.5"
14
+ VERSION = "0.1.6"
15
15
  end
16
16
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mediawiki-selenium
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Zeljko Filipin