mediawiki_selenium 0.2.3 → 0.2.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +4 -3
- data/docs/jobs.md +24 -25
- data/docs/template.md +9 -0
- data/lib/mediawiki_selenium/support/hooks.rb +4 -1
- 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: bcb7891fbf75be73884f0199d9230a78b9b38685
|
4
|
+
data.tar.gz: ad9e976abfa6a3cdb896fca5fa599e37f5e77b62
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c2c9dc37b1c564a2069aa535b160e5e25db3c58d73b2dd920015f5f9df13ecc801a1bfdbadb16d0d2f4ced78227b9c40f1e8282e59d79a4688f6a02bfe5c0099
|
7
|
+
data.tar.gz: a17df8fe567a3371203fd9adae423af42d7d5a1eb199e3da5c23d57451b65ba99adbe8ce9517fd001aaaf6164d4a952f36a69b649e70b541dd130e972607b025
|
data/README.md
CHANGED
@@ -77,9 +77,10 @@ Repositories that use the gem:
|
|
77
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/r-tr/), [Code Climate](https://codeclimate.com/github/wikimedia/mediawiki-extensions-Translate)
|
78
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/r-tw/), [Code Climate](https://codeclimate.com/github/wikimedia/mediawiki-extensions-TwnMainPage)
|
79
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/r-uls/), [Code Climate](https://codeclimate.com/github/wikimedia/mediawiki-extensions-UniversalLanguageSelector)
|
80
|
-
9.
|
81
|
-
10.
|
82
|
-
11.
|
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/r-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/r-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](https://wikidata-cloudbees.ci.cloudbees.com/), [Code Climate](https://codeclimate.com/github/wikimedia/mediawiki-extensions-Wikibase)
|
83
|
+
12. 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/r-bt/), [Code Climate](https://codeclimate.com/github/wikimedia/qa-browsertests)
|
83
84
|
|
84
85
|
## Contributing
|
85
86
|
|
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
|
@@ -106,7 +86,6 @@
|
|
106
86
|
- MediaWiki user: Selenium_user
|
107
87
|
- MediaWiki password variable: MEDIAWIKI_PASSWORD_SELENIUM_USER_WMFLABS_ORG
|
108
88
|
|
109
|
-
|
110
89
|
## Flow-en.wikipedia.beta.wmflabs.org-linux-chrome
|
111
90
|
- Browser Label: chrome
|
112
91
|
|
@@ -179,7 +158,6 @@
|
|
179
158
|
|
180
159
|
# TwnMainPage
|
181
160
|
|
182
|
-
|
183
161
|
## TwnMainPage-sandbox.translatewiki.net-linux-firefox
|
184
162
|
- Browser Label: firefox
|
185
163
|
- bundle exec cucumber: --tags @sandbox.translatewiki.net
|
@@ -191,13 +169,11 @@
|
|
191
169
|
|
192
170
|
|
193
171
|
|
194
|
-
|
195
172
|
# UniversalLanguageSelector
|
196
173
|
- Browser Label: firefox
|
197
174
|
- Recipients: aaharoni@wikimedia.org cmcmahon@wikimedia.org nlaxstrom@wikimedia.org sthottingal@wikimedia.org zfilipin@wikimedia.org
|
198
175
|
- Repository URL: UniversalLanguageSelector
|
199
176
|
|
200
|
-
|
201
177
|
## UniversalLanguageSelector-commons.wikimedia.beta.wmflabs.org-linux-firefox
|
202
178
|
- bundle exec cucumber: --tags @commons.wikimedia.beta.wmflabs.org
|
203
179
|
- MediaWiki URL: commons.wikimedia.beta.wmflabs.org
|
@@ -218,12 +194,35 @@
|
|
218
194
|
|
219
195
|
|
220
196
|
|
197
|
+
# UploadWizard
|
198
|
+
|
199
|
+
# UploadWizard-commons.wikimedia.beta.wmflabs.org
|
200
|
+
- bundle exec cucumber: --tags @commons.wikimedia.beta.wmflabs.org
|
201
|
+
- Recipients: cmcmahon@wikimedia.org zfilipin@wikimedia.org
|
202
|
+
- MediaWiki URL: commons.wikimedia.beta.wmflabs.org
|
203
|
+
- Repository URL: UploadWizard
|
204
|
+
- MediaWiki user: Selenium_user
|
205
|
+
- MediaWiki password variable: MEDIAWIKI_PASSWORD_SELENIUM_USER_WMFLABS_ORG
|
206
|
+
|
207
|
+
## UploadWizard-commons.wikimedia.beta.wmflabs.org-linux-chrome
|
208
|
+
- Browser Label: chrome
|
209
|
+
|
210
|
+
## UploadWizard-commons.wikimedia.beta.wmflabs.org-linux-firefox
|
211
|
+
- Browser Label: firefox
|
212
|
+
|
213
|
+
## UploadWizard-commons.wikimedia.beta.wmflabs.org-windows-internet_explorer_9
|
214
|
+
- Browser Label: internet_explorer_9
|
215
|
+
|
216
|
+
## UploadWizard-commons.wikimedia.beta.wmflabs.org-windows-internet_explorer_10
|
217
|
+
- Browser Label: internet_explorer_10
|
218
|
+
|
219
|
+
|
220
|
+
|
221
221
|
# VisualEditor
|
222
222
|
- Folder: modules/ve-mw/test/browser/
|
223
223
|
- Repository URL: VisualEditor
|
224
224
|
- MediaWiki user: Selenium_user
|
225
225
|
|
226
|
-
|
227
226
|
## VisualEditor-en.wikipedia.beta.wmflabs.org-linux-chrome
|
228
227
|
- Browser Label: chrome
|
229
228
|
- bundle exec cucumber: --tags @en.wikipedia.beta.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
|
|
@@ -15,12 +15,15 @@ Before("@login") do
|
|
15
15
|
puts "MEDIAWIKI_PASSWORD environment variable is not defined! Please export a value for that variable before proceeding." unless ENV["MEDIAWIKI_PASSWORD"]
|
16
16
|
end
|
17
17
|
|
18
|
+
def tagged_with?(scenario, tag)
|
19
|
+
scenario.feature_tags.tags.map{|tag| tag.name}.include? tag
|
20
|
+
end
|
18
21
|
Before do |scenario|
|
19
22
|
@random_string = Random.new.rand.to_s
|
20
23
|
if ENV["REUSE_BROWSER"] == "true" and $browser # CirrusSearch and VisualEditor need this
|
21
24
|
@browser = $browser
|
22
25
|
else
|
23
|
-
unless
|
26
|
+
unless tagged_with?(scenario, "@custom-browser")
|
24
27
|
@browser = browser(environment, test_name(scenario), "default")
|
25
28
|
$browser = @browser # CirrusSearch and VisualEditor need this
|
26
29
|
$session_id = @browser.driver.instance_variable_get(:@bridge).session_id
|
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.4
|
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-17 00:00:00.000000000 Z
|
16
16
|
dependencies:
|
17
17
|
- !ruby/object:Gem::Dependency
|
18
18
|
name: cucumber
|