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 +4 -4
- data/lib/mediawiki/selenium/hooks.rb +9 -4
- data/lib/mediawiki/selenium/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7c9aa3028b502f10f1f052bf93f9011289524713
|
4
|
+
data.tar.gz: 567b2fcc13afb7e0c8b91285bb1231597ce589f7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
23
|
-
@browser = browser
|
24
|
-
|
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
|