mediawiki-selenium 0.0.6 → 0.0.7
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/env.rb +23 -3
- 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: fc997d25060c62cb87658cc4aaf40194881a1eb4
|
4
|
+
data.tar.gz: 6de96e176f7e710414cc455e697d74a94b0e0b3b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0dc75d585940b0b7142d40dd492c47320f125bd3371684f65cc25cc44bb8d89f6a56447f7357b887f2d809e0fbfdd17453ded24863bf64aaa0460b31ca6d4ce2
|
7
|
+
data.tar.gz: 2ab1deb00f460804aa248e3aa54eb2a332b187fbeb79cb89864e7ecbc1770c5a655983f6065a3c4cdfc17815fa503b265a865f53168f5f997f2cdf4907df0d33
|
@@ -91,7 +91,6 @@ def sauce_browser(test_name, language)
|
|
91
91
|
|
92
92
|
browser
|
93
93
|
end
|
94
|
-
|
95
94
|
def test_name(scenario)
|
96
95
|
if scenario.respond_to? :feature
|
97
96
|
"#{scenario.feature.name}: #{scenario.name}"
|
@@ -115,8 +114,10 @@ end
|
|
115
114
|
Before do |scenario|
|
116
115
|
@config = config
|
117
116
|
@random_string = Random.new.rand.to_s
|
118
|
-
@
|
119
|
-
|
117
|
+
unless @language # only UniversalLanguageSelector needs this
|
118
|
+
@browser = browser(environment, test_name(scenario), 'default')
|
119
|
+
$session_id = @browser.driver.instance_variable_get(:@bridge).session_id
|
120
|
+
end
|
120
121
|
end
|
121
122
|
|
122
123
|
After do |scenario|
|
@@ -126,3 +127,22 @@ After do |scenario|
|
|
126
127
|
end
|
127
128
|
@browser.close unless ENV['KEEP_BROWSER_OPEN'] == 'true'
|
128
129
|
end
|
130
|
+
|
131
|
+
# only UniversalLanguageSelector needs this
|
132
|
+
|
133
|
+
Before('@uls-in-personal-only') do |scenario|
|
134
|
+
if uls_position() != 'personal'
|
135
|
+
scenario.skip_invoke!
|
136
|
+
end
|
137
|
+
end
|
138
|
+
|
139
|
+
Before('@uls-in-sidebar-only') do |scenario|
|
140
|
+
if uls_position() != 'interlanguage'
|
141
|
+
scenario.skip_invoke!
|
142
|
+
end
|
143
|
+
end
|
144
|
+
|
145
|
+
After('@reset-preferences-after') do |scenario|
|
146
|
+
visit(ResetPreferencesPage)
|
147
|
+
on(ResetPreferencesPage).submit_element.click
|
148
|
+
end
|