mediawiki_selenium 0.2.25 → 0.2.26

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9685b9c823196f45cea7abb49276c23ec476bc4b
4
- data.tar.gz: 0a76a83e9424d64ad8807f1fd2223750883848b7
3
+ metadata.gz: f079ad42db103a267db048e2caf9bb03e910911d
4
+ data.tar.gz: b0c542267736ce3e2956b902e8b43b90e74f7a23
5
5
  SHA512:
6
- metadata.gz: 83d924b70e5e8f25d093386628a8db1d7772d92ea893de520f8ea888e3bd07515412354f6ec1aaa4e8ea3e978362ed80a8d670279b008c8633ee6c2b32305f37
7
- data.tar.gz: 9baa562b4550ecaf3b428e495ad070c8173cd4587dd61ac10e31094fbe98e153569e2cae241acc55abd557782079fe2b39e18c62dd133d89bea6e54aaeb7493f
6
+ metadata.gz: d1760d96c06c03b8e49cc292b7fa0172da951a725610eba00fc0cd8432df1bb754f0235f013acca7495136e28c59bd4b27cf5ec9294d0a5d14a3c7bf38b2d333
7
+ data.tar.gz: a8c620362ea465f5399ca3c077d53310c52e3dfc22999a3825cf2386e15119517e9453187e5ce92f36f282e39ca0476d7544ea2606765b2e25208315866e105e
@@ -0,0 +1,4 @@
1
+ .bundle
2
+ .gem
3
+ *.gem
4
+ Gemfile.lock
data/Gemfile CHANGED
@@ -1,2 +1,6 @@
1
1
  #ruby=ruby-2.1.1
2
2
  #ruby-gemset=mediawiki_selenium
3
+
4
+ source "https://rubygems.org"
5
+
6
+ gemspec
data/README.md CHANGED
@@ -107,11 +107,10 @@ Repositories that use the gem:
107
107
  1. TwnMainPage: [Gerrit](https://gerrit.wikimedia.org/r/#/admin/projects/mediawiki/extensions/TwnMainPage), [GitHub](https://github.com/wikimedia/mediawiki-extensions-TwnMainPage), [Code Climate](https://codeclimate.com/github/wikimedia/mediawiki-extensions-TwnMainPage)
108
108
  1. UniversalLanguageSelector: [Gerrit](https://gerrit.wikimedia.org/r/#/admin/projects/mediawiki/extensions/UniversalLanguageSelector), [GitHub](https://github.com/wikimedia/mediawiki-extensions-UniversalLanguageSelector), [Code Climate](https://codeclimate.com/github/wikimedia/mediawiki-extensions-UniversalLanguageSelector)
109
109
  1. UploadWizard: [Gerrit](https://gerrit.wikimedia.org/r/#/admin/projects/mediawiki/extensions/UploadWizard), [GitHub](https://github.com/wikimedia/mediawiki-extensions-UploadWizard), [Code Climate](https://codeclimate.com/github/wikimedia/mediawiki-extensions-UploadWizard)
110
- 1. VisualEditor: [Gerrit](https://gerrit.wikimedia.org/r/#/admin/projects/mediawiki/extensions/VisualEditor), [GitHub](https://github.com/wikimedia/mediawiki-extensions-VisualEditor), [Code Climate](https://codeclimate.com/github/wikimedia/mediawiki-extensions-VisualEditor), `/modules/ve-mw/test/browser` folder
111
- 1. WikidataBrowserTests: [GitHub](https://github.com/wmde/WikidataBrowserTests), [Code Climate](https://codeclimate.com/github/wmde/WikidataBrowserTests), [Jenkins](http://wdjenkins.wmflabs.org/ci/)
110
+ 1. VisualEditor: [Gerrit](https://gerrit.wikimedia.org/r/#/admin/projects/mediawiki/extensions/VisualEditor), [GitHub](https://github.com/wikimedia/mediawiki-extensions-VisualEditor), [Code Climate](https://codeclimate.com/github/wikimedia/mediawiki-extensions-VisualEditor), `/modules/ve-mw/tests/browser` folder
111
+ 1. WikidataBrowserTests: [GitHub](https://github.com/wmde/WikidataBrowserTests), [Code Climate](https://codeclimate.com/github/wmde/WikidataBrowserTests), [Jenkins](http://wdjenkins.wmflabs.org/ci/), `/` folder
112
112
  1. WikiLove: [Gerrit](https://gerrit.wikimedia.org/r/#/admin/projects/mediawiki/extensions/WikiLove), [GitHub](https://github.com/wikimedia/mediawiki-extensions-WikiLove), [Code Climate](https://codeclimate.com/github/wikimedia/mediawiki-extensions-WikiLove)
113
- 1. ZeroRatedMobileAccess: [Gerrit](https://gerrit.wikimedia.org/r/#/admin/projects/mediawiki/extensions/ZeroRatedMobileAccess), [GitHub](https://github.com/wikimedia/mediawiki-extensions-ZeroRatedMobileAccess), [Code Climate](https://codeclimate.com/github/wikimedia/mediawiki-extensions-ZeroRatedMobileAccess)
114
- 1. browsertests: [Gerrit](https://gerrit.wikimedia.org/r/#/admin/projects/qa/browsertests), [GitHub](https://github.com/wikimedia/qa-browsertests), [Code Climate](https://codeclimate.com/github/wikimedia/qa-browsertests)
113
+ 1. ZeroBanner: [Gerrit](https://gerrit.wikimedia.org/r/#/admin/projects/mediawiki/extensions/ZeroBanner), [GitHub](https://github.com/wikimedia/mediawiki-extensions-ZeroBanner), [Code Climate](https://codeclimate.com/github/wikimedia/mediawiki-extensions-ZeroBanner)
115
114
 
116
115
  ## Contributing
117
116
 
@@ -125,91 +124,108 @@ Also see https://www.mediawiki.org/wiki/QA/Browser_testing#How_to_contribute
125
124
 
126
125
  ## Release notes
127
126
 
128
- ### 0.2.24
127
+ ### 0.2.26 2014-07-18
128
+
129
+ * Added runtime dependency on mediawiki_api
130
+ * Added call to #protect from mediawiki_api
131
+
132
+ ### 0.2.25 2014-06-27
133
+
134
+ * Make the check for complete login independent of language
135
+
136
+ ### 0.2.24 2014-06-12
129
137
 
130
138
  * No longer using net-http-persistent Ruby gem. Looks like net-http-persistent is causing failures sometimes. Testing if
131
139
  things will be more stable without it.
132
140
 
133
- ### 0.2.23
141
+ ### 0.2.23 2014-06-05
134
142
 
135
143
  * Take screen shot only if browser is opened
136
144
  * Upgrade to page-object gem 1.0. New version has better debugging.
137
145
 
138
- ### 0.2.22
146
+ ### 0.2.22 2014-04-23
139
147
 
140
148
  * Fixed "File name too long" error message
141
149
 
142
- ### 0.2.21
150
+ ### 0.2.21 2014-04-22
143
151
 
144
152
  * Do not output link to Sauce Labs when running a local browser
145
153
 
146
- ### 0.2.20
154
+ ### 0.2.20 2014-04-15
147
155
 
148
156
  * Updated readme file with release notes
149
157
  * `APIPage#create` should use `title` and `content` variables when creating a page
150
158
 
151
- ### 0.2.19
159
+ ### 0.2.19 2014-04-11
152
160
 
153
161
  * APIPage can create pages via API
154
162
 
155
- ### 0.2.18
163
+ ### 0.2.18 2014-04-11
156
164
 
157
165
  * If environment variable HEADLESS is set to true, run a local browser
158
166
 
159
- ### 0.2.17
167
+ ### 0.2.17 2014-04-08
160
168
 
161
169
  * File needed for file upload steps was not required
162
170
  * Login sometimes takes >5s to complete
163
171
  * Updated readme file
164
172
 
165
- ### 0.2.16
173
+ ### 0.2.16 2014-03-21
166
174
 
167
175
  * MobileFrontend and UploadWizard should share upload steps
168
176
 
169
- ### 0.2.15
177
+ ### 0.2.15 2014-03-19
170
178
 
171
179
  * Fixed setting a cookie when starting the browser
172
180
 
173
- ### 0.2.14
181
+ ### 0.2.14 2014-03-19
174
182
 
175
183
  * A cookie can optionally be set when starting the browser
176
184
 
177
- ### 0.2.13
185
+ ### 0.2.13 2014-03-18
178
186
 
179
187
  * The gem should be able to start local and remote browsers with optional browser setup
180
188
 
181
- ### 0.2.12
189
+ ### 0.2.12 2014-03-13
182
190
 
183
191
  * Make "page has no ResourceLoader errors" Cucumber step available
184
192
 
185
- ### 0.2.11
193
+ ### 0.2.11 2014-03-10
186
194
 
187
195
  * Add optional argument wait_for_logout_element to login_with method
188
196
  * Wrapped README.md to 80 chars for readability
189
197
 
190
- ### 0.2.10
198
+ ### 0.2.10 2014-03-10
191
199
 
192
200
  * Added "I am at a random page" step to the gem
193
201
  * Make it possible to check for ResourceLoader errors anywhere
194
202
 
195
- ### 0.2.9
203
+ ### 0.2.9 2014-03-06
196
204
 
197
205
  * Fixed login method, instead of waiting for link with text in English, wait for link with href
198
206
 
199
- ### 0.2.8
207
+ ### 0.2.8 2014-03-06
200
208
 
201
209
  * Moved BROWSER_TIMEOUT implementation to the gem
202
210
  * Moved Jenkins doc to jenkins-job-builder-config repo
203
211
  * Updated Ruby version from 2.1.0 to 2.1.1
204
212
  * Cloudbees Jenkins jobs are now created using Jenkins Job Builder
205
213
 
206
- ### 0.2.7
214
+ ### 0.2.7 2014-02-21
207
215
 
208
216
  * Wait for login process to complete
209
217
  * Added support for @custom-browser Cucumber tag
210
218
  * Removed configuration of Sauce Labs browsers from the gem
211
219
 
212
- ### 0.2.2
220
+ ### 0.2.6 2014-02-18
221
+
222
+ ### 0.2.5 2014-02-17
223
+
224
+ ### 0.2.4 2014-02-17
225
+
226
+ ### 0.2.3 2014-02-13
227
+
228
+ ### 0.2.2 2014-02-10
213
229
 
214
230
  * `SCREENSHOT_FAILURES_PATH` environment variable lets you override the destination path for screenshots
215
231
  * Moved resetting preferences to the gem
@@ -218,7 +234,7 @@ Also see https://www.mediawiki.org/wiki/QA/Browser_testing#How_to_contribute
218
234
  * Moved LoginPage class and URL module to the gem
219
235
  * Moved files to support folder
220
236
 
221
- ### 0.2.1
237
+ ### 0.2.1 2014-02-07
222
238
 
223
239
  * Get screenshots on failures by setting the environment variable `SCREENSHOT_FAILURES` to `true`
224
240
  * Add a Gemfile to force a good version of Ruby
@@ -226,23 +242,29 @@ Also see https://www.mediawiki.org/wiki/QA/Browser_testing#How_to_contribute
226
242
  * Renamed mediawiki-selenium Ruby gem to mediawiki_selenium
227
243
  * Added missing contributors
228
244
 
229
- ### 0.1.20
245
+ ### 0.2.0 2014-02-07
246
+
247
+ ### 0.1.21 2014-02-07
248
+
249
+ ### 0.1.20 2014-01-30
230
250
 
231
251
  * Added the most recent versions of all runtime dependencies
232
252
 
233
- ### 0.1.19
253
+ ### 0.1.19 2014-01-30
234
254
 
235
255
  * Fixed warning message displayed while building the gem
236
256
  * Display error message if browser is not started for some reason
237
257
 
238
- ### 0.1.18
258
+ ### 0.1.18 2014-01-30
239
259
 
240
260
  * Increases verbosity of Cucumber output
241
261
  * Run browsers headlessly if HEADLESS environment variable is set to true
242
262
  * Moved Sauce Labs browser configuration to the gem
243
263
  * Removed debugging code from Jenkins jobs
244
264
 
245
- ### 0.1.16
265
+ ### 0.1.17 2014-01-28
266
+
267
+ ### 0.1.16 2014-01-17
246
268
 
247
269
  * Resize PhantomJS to 1280x1024 when the browser opens
248
270
  * Removed code that is no longer needed
@@ -256,29 +278,31 @@ Also see https://www.mediawiki.org/wiki/QA/Browser_testing#How_to_contribute
256
278
  * Replacing single quotes with double quotes
257
279
  * Fix Accept-Language feature for PhantomJS
258
280
 
259
- ### 0.1.14
281
+ ### 0.1.15 2013-12-13
282
+
283
+ ### 0.1.14 2013-12-09
260
284
 
261
285
  * Make it possible to run tests on Cloudbees using PhantomJS
262
286
  * Merging the readme files of other repositories with this one
263
287
  * Prefer double-quoted strings in Ruby code
264
288
  * Added links to Jenkins jobs
265
289
 
266
- ### 0.1.13
290
+ ### 0.1.13 2013-11-14
267
291
 
268
292
  * Resize browser at Sauce Labs to maximum supported size
269
293
 
270
- ### 0.1.12
294
+ ### 0.1.12 2013-11-04
271
295
 
272
296
  * Introduce new variable that points to the variable that holds the password
273
297
 
274
- ### 0.1.11
298
+ ### 0.1.11 2013-11-04
275
299
 
276
300
  * Passwords are in environment variables but not displayed in Jenkins console log
277
301
  * Set up Code Climate for all repositories that have Ruby code
278
302
  * Deleted Jenkins jobs that are known to fail
279
303
  * Updated documentation
280
304
 
281
- ### 0.1.10
305
+ ### 0.1.10 2013-10-21
282
306
 
283
307
  * Updated Jenkins documentation
284
308
  * Moving gems that all repositories need to the gem
@@ -288,69 +312,71 @@ Also see https://www.mediawiki.org/wiki/QA/Browser_testing#How_to_contribute
288
312
  * Updated readme file with usage instructions and links to repositories that use the gem
289
313
  * Add .gitreview
290
314
 
291
- ### 0.1.8
315
+ ### 0.1.9 2013-10-21
316
+
317
+ ### 0.1.8 2013-10-04
292
318
 
293
319
  * Use rest_client instead of curl when using Sauce Labs API
294
320
  * Set build number when running tests at Sauce Labs
295
321
 
296
- ### 0.1.7
322
+ ### 0.1.7 2013-10-04
297
323
 
298
324
  * MobileFrontend repository uses @user_agent tag
299
325
 
300
- ### 0.1.6
326
+ ### 0.1.6 2013-10-04
301
327
 
302
328
  * Added code needed for CirrusSearch repository
303
329
 
304
- ### 0.1.5
330
+ ### 0.1.5 2013-10-04
305
331
 
306
332
  * Move UniversalLanguageSelector hooks back to it's repository
307
333
 
308
- ### 0.1.4
334
+ ### 0.1.4 2013-10-03
309
335
 
310
336
  * Remove debugging code committed by mistake
311
337
 
312
- ### 0.1.3
338
+ ### 0.1.3 2013-10-03
313
339
 
314
340
  * Moved Cucumber hooks used only for UniversalLanguageSelector to a separate file
315
341
 
316
- ### 0.1.2
342
+ ### 0.1.2 2013-10-03
317
343
 
318
344
  * Forgot to require hooks file
319
345
 
320
- ### 0.1.1
346
+ ### 0.1.1 2013-10-03
321
347
 
322
348
  * Moved Cucumber hooks to hooks.rb file
323
349
 
324
- ### 0.1.0
350
+ ### 0.1.0 2013-10-03
325
351
 
326
352
  * The gem is working, I think it is time to move from 0.0.x
327
353
 
328
- ### 0.0.7
354
+ ### 0.0.7 2013-10-02
329
355
 
330
356
  * Moved code from UniversalLanguageSelector repository
331
357
 
332
- ### 0.0.6
358
+ ### 0.0.6 2013-10-02
333
359
 
334
360
  * Updated env.rb file to the latest version
335
361
  * Added license headers to all files that did not have it
336
362
 
337
- ### 0.0.5
363
+ ### 0.0.5 2013-10-02
338
364
 
339
365
  * Imported sauce.rb file from browsertests repository
340
366
 
341
- ### 0.0.4
367
+ ### 0.0.4 2013-10-02
342
368
 
343
369
  * Include env.rb file from browsertests repository
344
370
 
345
- ### 0.0.3
371
+ ### 0.0.3 2013-10-02
346
372
 
347
373
  * Changed license to GPL-2
348
374
 
349
- ### 0.0.2
375
+ ### 0.0.2 2013-10-02
350
376
 
351
377
  * Fixed a couple of "gem build" warnings
352
378
 
353
- ### 0.0.1
379
+ ### 0.0.1 2013-10-02
354
380
 
355
381
  * Added description and summary to gemspec file
356
382
  * Auto generated gem by RubyMine
@@ -1,11 +1,21 @@
1
+ require "mediawiki_api"
2
+
1
3
  class APIPage
2
4
  include PageObject
3
5
 
4
- def create title, content
6
+ def client
5
7
  abort "Environment variable MEDIAWIKI_API_URL must be set in order to create a target page for this test" unless ENV["MEDIAWIKI_API_URL"]
6
8
 
7
9
  client = MediawikiApi::Client.new ENV["MEDIAWIKI_API_URL"]
8
10
  client.log_in ENV["MEDIAWIKI_USER"], ENV["MEDIAWIKI_PASSWORD"]
11
+ client
12
+ end
13
+
14
+ def create title, content
9
15
  client.create_page title, content
10
16
  end
17
+
18
+ def protect title, reason
19
+ client.protect_page title, reason
20
+ end
11
21
  end
@@ -10,5 +10,5 @@ https://git.wikimedia.org/blob/mediawiki%2Fselenium/HEAD/CREDITS.
10
10
  =end
11
11
 
12
12
  module MediawikiSelenium
13
- VERSION = "0.2.25"
13
+ VERSION = "0.2.26"
14
14
  end
@@ -20,6 +20,7 @@ makes it easy to update the shared code.}
20
20
  spec.add_runtime_dependency "cucumber", "~> 1.3", ">= 1.3.10"
21
21
  spec.add_runtime_dependency "headless", "~> 1.0", ">= 1.0.1"
22
22
  spec.add_runtime_dependency "json", "~> 1.8", ">= 1.8.1"
23
+ spec.add_runtime_dependency "mediawiki_api", "~> 0.1.3"
23
24
  spec.add_runtime_dependency "page-object", "~> 1.0"
24
25
  spec.add_runtime_dependency "rest-client", "~> 1.6", ">= 1.6.7"
25
26
  spec.add_runtime_dependency "rspec-expectations", "~> 2.14", ">= 2.14.4"
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.25
4
+ version: 0.2.26
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-06-27 00:00:00.000000000 Z
15
+ date: 2014-07-18 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: cucumber
@@ -74,6 +74,20 @@ dependencies:
74
74
  - - ">="
75
75
  - !ruby/object:Gem::Version
76
76
  version: 1.8.1
77
+ - !ruby/object:Gem::Dependency
78
+ name: mediawiki_api
79
+ requirement: !ruby/object:Gem::Requirement
80
+ requirements:
81
+ - - "~>"
82
+ - !ruby/object:Gem::Version
83
+ version: 0.1.3
84
+ type: :runtime
85
+ prerelease: false
86
+ version_requirements: !ruby/object:Gem::Requirement
87
+ requirements:
88
+ - - "~>"
89
+ - !ruby/object:Gem::Version
90
+ version: 0.1.3
77
91
  - !ruby/object:Gem::Dependency
78
92
  name: page-object
79
93
  requirement: !ruby/object:Gem::Requirement
@@ -161,10 +175,10 @@ executables: []
161
175
  extensions: []
162
176
  extra_rdoc_files: []
163
177
  files:
178
+ - ".gitignore"
164
179
  - ".gitreview"
165
180
  - CREDITS
166
181
  - Gemfile
167
- - Gemfile.lock
168
182
  - LICENSE
169
183
  - README.md
170
184
  - lib/mediawiki_selenium.rb
@@ -203,7 +217,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
203
217
  version: '0'
204
218
  requirements: []
205
219
  rubyforge_project:
206
- rubygems_version: 2.2.2
220
+ rubygems_version: 2.4.1
207
221
  signing_key:
208
222
  specification_version: 4
209
223
  summary: An easy way to run MediaWiki Selenium tests.
@@ -1,7 +0,0 @@
1
- GEM
2
- specs:
3
-
4
- PLATFORMS
5
- ruby
6
-
7
- DEPENDENCIES