mediawiki_selenium 0.2.6 → 0.2.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +14 -11
- data/docs/jobs.md +60 -26
- data/docs/template.md +9 -0
- data/lib/mediawiki_selenium/support/hooks.rb +9 -5
- data/lib/mediawiki_selenium/support/pages/login_page.rb +1 -0
- data/lib/mediawiki_selenium/version.rb +1 -1
- 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: 6de69a636cc165f7c0d799893bca28397b68deb3
|
4
|
+
data.tar.gz: e13d797d79ee37040720660f06d5b5530754c30f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2060c29441bd49733cfc4343580f9bc4ff74c988ce1b91faed6a37e598745f1f49d74cd632c85b2a5f2de217471e21e20f0c76c5a6e873a90936ef49c98b2d9c
|
7
|
+
data.tar.gz: 086fa183994dc262f94393fd735b326d13759356b2daef6dbc366c4fb7253c113c301d8fef668291857aeb06c8f6abc61c6532495a37f8728cd5f47bcd3bafb2
|
data/README.md
CHANGED
@@ -69,17 +69,20 @@ If not stated differently, Selenium tests are in `/tests/browser` folder.
|
|
69
69
|
|
70
70
|
Repositories that use the gem:
|
71
71
|
|
72
|
-
1. CirrusSearch: [Gerrit](https://gerrit.wikimedia.org/r/#/admin/projects/mediawiki/extensions/CirrusSearch), [GitHub](https://github.com/wikimedia/mediawiki-extensions-CirrusSearch), [Code Climate](https://codeclimate.com/github/wikimedia/mediawiki-extensions-CirrusSearch)
|
73
|
-
2. ContentTranslation: [Gerrit](https://gerrit.wikimedia.org/r/#/admin/projects/mediawiki/extensions/ContentTranslation), [GitHub](https://github.com/wikimedia/mediawiki-extensions-ContentTranslation), [Code Climate](https://codeclimate.com/github/wikimedia/mediawiki-extensions-ContentTranslation)
|
74
|
-
3. Flow: [Gerrit](https://gerrit.wikimedia.org/r/#/admin/projects/mediawiki/extensions/Flow), [GitHub](https://github.com/wikimedia/mediawiki-extensions-Flow), [Jenkins](https://wmf.ci.cloudbees.com/view/
|
75
|
-
4. MobileFrontend: [Gerrit](https://gerrit.wikimedia.org/r/#/admin/projects/mediawiki/extensions/MobileFrontend), [GitHub](https://github.com/wikimedia/mediawiki-extensions-MobileFrontend), [Jenkins](https://wmf.ci.cloudbees.com/view/
|
76
|
-
5. MultimediaViewer: [Gerrit](https://gerrit.wikimedia.org/r/#/admin/projects/mediawiki/extensions/MultimediaViewer), [GitHub](https://github.com/wikimedia/mediawiki-extensions-MultimediaViewer), [Jenkins](https://wmf.ci.cloudbees.com/view/
|
77
|
-
6. Translate: [Gerrit](https://gerrit.wikimedia.org/r/#/admin/projects/mediawiki/extensions/Translate), [GitHub](https://github.com/wikimedia/mediawiki-extensions-Translate), [Jenkins](https://wmf.ci.cloudbees.com/view/
|
78
|
-
7. TwnMainPage: [Gerrit](https://gerrit.wikimedia.org/r/#/admin/projects/mediawiki/extensions/TwnMainPage), [GitHub](https://github.com/wikimedia/mediawiki-extensions-TwnMainPage), [Jenkins](https://wmf.ci.cloudbees.com/view/
|
79
|
-
8. UniversalLanguageSelector: [Gerrit](https://gerrit.wikimedia.org/r/#/admin/projects/mediawiki/extensions/UniversalLanguageSelector), [GitHub](https://github.com/wikimedia/mediawiki-extensions-UniversalLanguageSelector), [Jenkins](https://wmf.ci.cloudbees.com/view/
|
80
|
-
9.
|
81
|
-
10.
|
82
|
-
11.
|
72
|
+
1. CirrusSearch: [Gerrit](https://gerrit.wikimedia.org/r/#/admin/projects/mediawiki/extensions/CirrusSearch), [GitHub](https://github.com/wikimedia/mediawiki-extensions-CirrusSearch), [Jenkins](https://wmf.ci.cloudbees.com/view/cs/), [Code Climate](https://codeclimate.com/github/wikimedia/mediawiki-extensions-CirrusSearch)
|
73
|
+
2. ContentTranslation: [Gerrit](https://gerrit.wikimedia.org/r/#/admin/projects/mediawiki/extensions/ContentTranslation), [GitHub](https://github.com/wikimedia/mediawiki-extensions-ContentTranslation), [Jenkins](https://wmf.ci.cloudbees.com/view/cx/), [Code Climate](https://codeclimate.com/github/wikimedia/mediawiki-extensions-ContentTranslation)
|
74
|
+
3. Flow: [Gerrit](https://gerrit.wikimedia.org/r/#/admin/projects/mediawiki/extensions/Flow), [GitHub](https://github.com/wikimedia/mediawiki-extensions-Flow), [Jenkins](https://wmf.ci.cloudbees.com/view/flow/), [Code Climate](https://codeclimate.com/github/wikimedia/mediawiki-extensions-Flow)
|
75
|
+
4. MobileFrontend: [Gerrit](https://gerrit.wikimedia.org/r/#/admin/projects/mediawiki/extensions/MobileFrontend), [GitHub](https://github.com/wikimedia/mediawiki-extensions-MobileFrontend), [Jenkins](https://wmf.ci.cloudbees.com/view/mf/), [Code Climate](https://codeclimate.com/github/wikimedia/mediawiki-extensions-MobileFrontend)
|
76
|
+
5. MultimediaViewer: [Gerrit](https://gerrit.wikimedia.org/r/#/admin/projects/mediawiki/extensions/MultimediaViewer), [GitHub](https://github.com/wikimedia/mediawiki-extensions-MultimediaViewer), [Jenkins](https://wmf.ci.cloudbees.com/view/mv/), [Code Climate](https://codeclimate.com/github/wikimedia/mediawiki-extensions-MultimediaViewer)
|
77
|
+
6. Translate: [Gerrit](https://gerrit.wikimedia.org/r/#/admin/projects/mediawiki/extensions/Translate), [GitHub](https://github.com/wikimedia/mediawiki-extensions-Translate), [Jenkins](https://wmf.ci.cloudbees.com/view/tr/), [Code Climate](https://codeclimate.com/github/wikimedia/mediawiki-extensions-Translate)
|
78
|
+
7. TwnMainPage: [Gerrit](https://gerrit.wikimedia.org/r/#/admin/projects/mediawiki/extensions/TwnMainPage), [GitHub](https://github.com/wikimedia/mediawiki-extensions-TwnMainPage), [Jenkins](https://wmf.ci.cloudbees.com/view/tmp/), [Code Climate](https://codeclimate.com/github/wikimedia/mediawiki-extensions-TwnMainPage)
|
79
|
+
8. UniversalLanguageSelector: [Gerrit](https://gerrit.wikimedia.org/r/#/admin/projects/mediawiki/extensions/UniversalLanguageSelector), [GitHub](https://github.com/wikimedia/mediawiki-extensions-UniversalLanguageSelector), [Jenkins](https://wmf.ci.cloudbees.com/view/uls/), [Code Climate](https://codeclimate.com/github/wikimedia/mediawiki-extensions-UniversalLanguageSelector)
|
80
|
+
9. UploadWizard: [Gerrit](https://gerrit.wikimedia.org/r/#/admin/projects/mediawiki/extensions/UploadWizard), [GitHub](https://github.com/wikimedia/mediawiki-extensions-UploadWizard), [Jenkins](https://wmf.ci.cloudbees.com/view/uw/), [Code Climate](https://codeclimate.com/github/wikimedia/mediawiki-extensions-UploadWizard)
|
81
|
+
10. VisualEditor: [Gerrit](https://gerrit.wikimedia.org/r/#/admin/projects/mediawiki/extensions/VisualEditor), [GitHub](https://github.com/wikimedia/mediawiki-extensions-VisualEditor), [Jenkins](https://wmf.ci.cloudbees.com/view/ve/), [Code Climate](https://codeclimate.com/github/wikimedia/mediawiki-extensions-VisualEditor), `/modules/ve-mw/test/browser` folder
|
82
|
+
11. Wikibase: [Gerrit](https://gerrit.wikimedia.org/r/#/admin/projects/mediawiki/extensions/Wikibase), [GitHub](https://github.com/wikimedia/mediawiki-extensions-Wikibase), [Jenkins](http://wikidata-jenkins.wmflabs.org/ci/), [Code Climate](https://codeclimate.com/github/wikimedia/mediawiki-extensions-Wikibase)
|
83
|
+
12. WikiLove: [Gerrit](https://gerrit.wikimedia.org/r/#/admin/projects/mediawiki/extensions/WikiLove), [GitHub](https://github.com/wikimedia/mediawiki-extensions-WikiLove), [Jenkins](https://wmf.ci.cloudbees.com/view/wl/), [Code Climate](https://codeclimate.com/github/wikimedia/mediawiki-extensions-WikiLove)
|
84
|
+
13. ZeroRatedMobileAccess: [Gerrit](https://gerrit.wikimedia.org/r/#/admin/projects/mediawiki/extensions/ZeroRatedMobileAccess), [GitHub](https://github.com/wikimedia/mediawiki-extensions-ZeroRatedMobileAccess), [Jenkins](https://wmf.ci.cloudbees.com/view/zero/), [Code Climate](https://codeclimate.com/github/wikimedia/mediawiki-extensions-ZeroRatedMobileAccess)
|
85
|
+
14. browsertests: [Gerrit](https://gerrit.wikimedia.org/r/#/admin/projects/qa/browsertests), [GitHub](https://github.com/wikimedia/qa-browsertests), [Jenkins](https://wmf.ci.cloudbees.com/view/bt/), [Code Climate](https://codeclimate.com/github/wikimedia/qa-browsertests)
|
83
86
|
|
84
87
|
## Contributing
|
85
88
|
|
data/docs/jobs.md
CHANGED
@@ -17,25 +17,6 @@
|
|
17
17
|
- MediaWiki user: Selenium_user
|
18
18
|
|
19
19
|
|
20
|
-
# browsertests-commons.wikimedia.beta.wmflabs.org
|
21
|
-
- MediaWiki URL: commons.wikimedia.beta.wmflabs.org
|
22
|
-
- bundle exec cucumber: --tags @commons.wikimedia.beta.wmflabs.org
|
23
|
-
- MediaWiki password variable: MEDIAWIKI_PASSWORD_SELENIUM_USER_WMFLABS_ORG
|
24
|
-
|
25
|
-
## browsertests-commons.wikimedia.beta.wmflabs.org-linux-chrome
|
26
|
-
- Browser Label: chrome
|
27
|
-
|
28
|
-
## browsertests-commons.wikimedia.beta.wmflabs.org-linux-firefox
|
29
|
-
- Browser Label: firefox
|
30
|
-
|
31
|
-
## browsertests-commons.wikimedia.beta.wmflabs.org-windows-internet_explorer_9
|
32
|
-
- Browser Label: internet_explorer_9
|
33
|
-
|
34
|
-
## browsertests-commons.wikimedia.beta.wmflabs.org-windows-internet_explorer_10
|
35
|
-
- Browser Label: internet_explorer_10
|
36
|
-
|
37
|
-
|
38
|
-
|
39
20
|
# browsertests-en.wikipedia.beta.wmflabs.org
|
40
21
|
- bundle exec cucumber: --tags @en.wikipedia.beta.wmflabs.org
|
41
22
|
- MediaWiki URL: en.wikipedia.beta.wmflabs.org
|
@@ -66,7 +47,6 @@
|
|
66
47
|
- Browser Label: internet_explorer_10
|
67
48
|
|
68
49
|
|
69
|
-
|
70
50
|
# browsertests-test2.wikipedia.org
|
71
51
|
- bundle exec cucumber: --tags @test2.wikipedia.org
|
72
52
|
- MediaWiki URL: test2.wikipedia.org
|
@@ -98,6 +78,21 @@
|
|
98
78
|
|
99
79
|
|
100
80
|
|
81
|
+
# CirrusSearch
|
82
|
+
- Browser Label: firefox
|
83
|
+
- Recipients: cmcmahon@wikimedia.org neverett@wikimedia.org zfilipin@wikimedia.org
|
84
|
+
- Repository URL: CirrusSearch
|
85
|
+
|
86
|
+
## CirrusSearch-test2.wikipedia.org-linux-firefox
|
87
|
+
- bundle exec cucumber: --tags @test2.wikipedia.org
|
88
|
+
- MediaWiki URL: test2.wikipedia.org
|
89
|
+
|
90
|
+
## CirrusSearch-en.wikipedia.beta.wmflabs.org-linux-firefox
|
91
|
+
- bundle exec cucumber: --tags @en.wikipedia.beta.wmflabs.org
|
92
|
+
- MediaWiki URL: en.wikipedia.beta.wmflabs.org
|
93
|
+
|
94
|
+
|
95
|
+
|
101
96
|
# Flow
|
102
97
|
- bundle exec cucumber: --tags @en.wikipedia.beta.wmflabs.org
|
103
98
|
- Recipients: zfilipin@wikimedia.org cmcmahon@wikimedia.org
|
@@ -106,7 +101,6 @@
|
|
106
101
|
- MediaWiki user: Selenium_user
|
107
102
|
- MediaWiki password variable: MEDIAWIKI_PASSWORD_SELENIUM_USER_WMFLABS_ORG
|
108
103
|
|
109
|
-
|
110
104
|
## Flow-en.wikipedia.beta.wmflabs.org-linux-chrome
|
111
105
|
- Browser Label: chrome
|
112
106
|
|
@@ -179,7 +173,6 @@
|
|
179
173
|
|
180
174
|
# TwnMainPage
|
181
175
|
|
182
|
-
|
183
176
|
## TwnMainPage-sandbox.translatewiki.net-linux-firefox
|
184
177
|
- Browser Label: firefox
|
185
178
|
- bundle exec cucumber: --tags @sandbox.translatewiki.net
|
@@ -191,19 +184,24 @@
|
|
191
184
|
|
192
185
|
|
193
186
|
|
194
|
-
|
195
187
|
# UniversalLanguageSelector
|
196
188
|
- Browser Label: firefox
|
197
|
-
- Recipients: aaharoni@wikimedia.org cmcmahon@wikimedia.org nlaxstrom@wikimedia.org sthottingal@wikimedia.org zfilipin@wikimedia.org
|
189
|
+
- Recipients: aaharoni@wikimedia.org cmcmahon@wikimedia.org kmistry@wikimedia.org nlaxstrom@wikimedia.org sthottingal@wikimedia.org zfilipin@wikimedia.org
|
198
190
|
- Repository URL: UniversalLanguageSelector
|
199
191
|
|
200
|
-
|
201
192
|
## UniversalLanguageSelector-commons.wikimedia.beta.wmflabs.org-linux-firefox
|
202
193
|
- bundle exec cucumber: --tags @commons.wikimedia.beta.wmflabs.org
|
203
194
|
- MediaWiki URL: commons.wikimedia.beta.wmflabs.org
|
204
195
|
- MediaWiki user: Uls
|
205
196
|
- MediaWiki password variable: MEDIAWIKI_PASSWORD_ULS_WMFLABS_ORG
|
206
197
|
|
198
|
+
## UniversalLanguageSelector-commons.wikimedia.beta.wmflabs.org-windows-internet_explorer_10
|
199
|
+
- Browser Label: internet_explorer_10
|
200
|
+
- bundle exec cucumber: --tags @commons.wikimedia.beta.wmflabs.org
|
201
|
+
- MediaWiki URL: commons.wikimedia.beta.wmflabs.org
|
202
|
+
- MediaWiki user: Uls
|
203
|
+
- MediaWiki password variable: MEDIAWIKI_PASSWORD_ULS_WMFLABS_ORG
|
204
|
+
|
207
205
|
## UniversalLanguageSelector-en.wikipedia.beta.wmflabs.org-linux-firefox
|
208
206
|
- bundle exec cucumber: --tags @en.wikipedia.beta.wmflabs.org
|
209
207
|
- MediaWiki URL: en.wikipedia.beta.wmflabs.org
|
@@ -218,12 +216,35 @@
|
|
218
216
|
|
219
217
|
|
220
218
|
|
219
|
+
# UploadWizard
|
220
|
+
|
221
|
+
# UploadWizard-commons.wikimedia.beta.wmflabs.org
|
222
|
+
- bundle exec cucumber: --tags @commons.wikimedia.beta.wmflabs.org
|
223
|
+
- Recipients: cmcmahon@wikimedia.org zfilipin@wikimedia.org
|
224
|
+
- MediaWiki URL: commons.wikimedia.beta.wmflabs.org
|
225
|
+
- Repository URL: UploadWizard
|
226
|
+
- MediaWiki user: Selenium_user
|
227
|
+
- MediaWiki password variable: MEDIAWIKI_PASSWORD_SELENIUM_USER_WMFLABS_ORG
|
228
|
+
|
229
|
+
## UploadWizard-commons.wikimedia.beta.wmflabs.org-linux-chrome
|
230
|
+
- Browser Label: chrome
|
231
|
+
|
232
|
+
## UploadWizard-commons.wikimedia.beta.wmflabs.org-linux-firefox
|
233
|
+
- Browser Label: firefox
|
234
|
+
|
235
|
+
## UploadWizard-commons.wikimedia.beta.wmflabs.org-windows-internet_explorer_9
|
236
|
+
- Browser Label: internet_explorer_9
|
237
|
+
|
238
|
+
## UploadWizard-commons.wikimedia.beta.wmflabs.org-windows-internet_explorer_10
|
239
|
+
- Browser Label: internet_explorer_10
|
240
|
+
|
241
|
+
|
242
|
+
|
221
243
|
# VisualEditor
|
222
244
|
- Folder: modules/ve-mw/test/browser/
|
223
245
|
- Repository URL: VisualEditor
|
224
246
|
- MediaWiki user: Selenium_user
|
225
247
|
|
226
|
-
|
227
248
|
## VisualEditor-en.wikipedia.beta.wmflabs.org-linux-chrome
|
228
249
|
- Browser Label: chrome
|
229
250
|
- bundle exec cucumber: --tags @en.wikipedia.beta.wmflabs.org
|
@@ -251,3 +272,16 @@
|
|
251
272
|
- Recipients: cmcmahon@wikimedia.org jforrester@wikimedia.org jhall@wikimedia.org zfilipin@wikimedia.org
|
252
273
|
- MediaWiki URL: test2.wikipedia.org
|
253
274
|
- MediaWiki password variable: MEDIAWIKI_PASSWORD_SELENIUM_USER_WIKIPEDIA_ORG
|
275
|
+
|
276
|
+
|
277
|
+
|
278
|
+
# WikiLove
|
279
|
+
|
280
|
+
## WikiLove-en.wikipedia.beta.wmflabs.org-linux-firefox
|
281
|
+
- Browser Label: firefox
|
282
|
+
- bundle exec cucumber: --tags @en.wikipedia.beta.wmflabs.org
|
283
|
+
- Recipients: cmcmahon@wikimedia.org zfilipin@wikimedia.org
|
284
|
+
- MediaWiki URL: en.wikipedia.beta.wmflabs.org
|
285
|
+
- Repository URL: WikiLove
|
286
|
+
- MediaWiki user: Selenium_user
|
287
|
+
- MediaWiki password variable: MEDIAWIKI_PASSWORD_SELENIUM_USER_WMFLABS_ORG
|
data/docs/template.md
CHANGED
@@ -76,12 +76,21 @@
|
|
76
76
|
- Display Name: UniversalLanguageSelector
|
77
77
|
- Value: https://gerrit.wikimedia.org/r/mediawiki/extensions/UniversalLanguageSelector
|
78
78
|
|
79
|
+
- Display Name: UploadWizard
|
80
|
+
- Value: https://gerrit.wikimedia.org/r/mediawiki/extensions/UploadWizard
|
81
|
+
|
79
82
|
- Display Name: VisualEditor
|
80
83
|
- Value: https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
|
81
84
|
|
82
85
|
- Display Name: Wikibase
|
83
86
|
- Value: https://gerrit.wikimedia.org/r/mediawiki/extensions/Wikibase
|
84
87
|
|
88
|
+
- Display Name: WikiLove
|
89
|
+
- Value: https://gerrit.wikimedia.org/r/mediawiki/extensions/WikiLove
|
90
|
+
|
91
|
+
- Display Name: ZeroRatedMobileAccess
|
92
|
+
- Value: https://gerrit.wikimedia.org/r/mediawiki/extensions/ZeroRatedMobileAccess
|
93
|
+
|
85
94
|
- Display Name: browsertests
|
86
95
|
- Value: https://gerrit.wikimedia.org/r/qa/browsertests
|
87
96
|
|
@@ -9,6 +9,10 @@ mediawiki_selenium top-level directory and at
|
|
9
9
|
https://git.wikimedia.org/blob/mediawiki%2Fselenium/HEAD/CREDITS.
|
10
10
|
=end
|
11
11
|
|
12
|
+
Before("@custom-browser") do |scenario|
|
13
|
+
@scenario = scenario
|
14
|
+
end
|
15
|
+
|
12
16
|
Before("@login") do
|
13
17
|
ENV["MEDIAWIKI_PASSWORD"] = ENV[ENV["MEDIAWIKI_PASSWORD_VARIABLE"]] if ENV["MEDIAWIKI_PASSWORD_VARIABLE"]
|
14
18
|
puts "MEDIAWIKI_USER environment variable is not defined! Please export a value for that variable before proceeding." unless ENV["MEDIAWIKI_USER"]
|
@@ -19,12 +23,12 @@ Before do |scenario|
|
|
19
23
|
@random_string = Random.new.rand.to_s
|
20
24
|
if ENV["REUSE_BROWSER"] == "true" and $browser # CirrusSearch and VisualEditor need this
|
21
25
|
@browser = $browser
|
26
|
+
elsif scenario.source_tag_names.include? "@custom-browser"
|
27
|
+
# browser will be started in Cucumber step
|
22
28
|
else
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
$session_id = @browser.driver.instance_variable_get(:@bridge).session_id
|
27
|
-
end
|
29
|
+
@browser = browser(environment, test_name(scenario), "default")
|
30
|
+
$browser = @browser # CirrusSearch and VisualEditor need this
|
31
|
+
$session_id = @browser.driver.instance_variable_get(:@bridge).session_id
|
28
32
|
end
|
29
33
|
end
|
30
34
|
|
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.2.
|
4
|
+
version: 0.2.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris McMahon
|
@@ -12,7 +12,7 @@ authors:
|
|
12
12
|
autorequire:
|
13
13
|
bindir: bin
|
14
14
|
cert_chain: []
|
15
|
-
date: 2014-02-
|
15
|
+
date: 2014-02-21 00:00:00.000000000 Z
|
16
16
|
dependencies:
|
17
17
|
- !ruby/object:Gem::Dependency
|
18
18
|
name: cucumber
|