mediawiki_selenium 1.8.0 → 1.8.1
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 +5 -5
- data/.rubocop.yml +2 -0
- data/.rubocop_todo.yml +67 -0
- data/CREDITS +1 -1
- data/{LICENSE → LICENSE.md} +9 -9
- data/README.md +9 -0
- data/RELEASES.md +9 -1
- data/features/basic_usage.feature +2 -2
- data/features/step_definitions/rspec_steps.rb +1 -1
- data/lib/mediawiki_selenium/pages/reset_preferences_page.rb +1 -1
- data/lib/mediawiki_selenium/version.rb +1 -1
- data/mediawiki_selenium.gemspec +7 -2
- metadata +25 -11
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: a46bd4d63689be7a92c1bb239bf3900306f5726eabdb94b33bce0ebb62ede0d0
|
|
4
|
+
data.tar.gz: 50b007c53d85d7f3b1414a3930a77a4e423013ef42637b9d417f86553c16855c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 44ef2f3f9fcd264ece4178aa608ef2e871cd7bba2d92daa240864e9de506f8a38121f14ee79a2b2d665a2601d91ea5fc8c8dde8ffb64f84bf01cf43f8d7d8d26
|
|
7
|
+
data.tar.gz: 8a3a4fda8bbb1f73c71fe57b9ac0a2f189bfa4398faa5f80acc848660783b794a9408d1b3dc270f740ff3140be021eeabcde38fd2346f8c2d0511de75d8b9149
|
data/.rubocop.yml
CHANGED
data/.rubocop_todo.yml
ADDED
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
# This configuration was generated by
|
|
2
|
+
# `rubocop --auto-gen-config`
|
|
3
|
+
# on 2017-12-05 13:20:08 +0100 using RuboCop version 0.51.0.
|
|
4
|
+
# The point is for the user to remove these configuration records
|
|
5
|
+
# one by one as the offenses are removed from the code base.
|
|
6
|
+
# Note that changes in the inspected code, or installation of new
|
|
7
|
+
# versions of RuboCop, may require this file to be generated again.
|
|
8
|
+
|
|
9
|
+
# Offense count: 1
|
|
10
|
+
# Cop supports --auto-correct.
|
|
11
|
+
Layout/EmptyLineAfterMagicComment:
|
|
12
|
+
Exclude:
|
|
13
|
+
- 'mediawiki_selenium.gemspec'
|
|
14
|
+
|
|
15
|
+
# Offense count: 1
|
|
16
|
+
# Cop supports --auto-correct.
|
|
17
|
+
Layout/EmptyLines:
|
|
18
|
+
Exclude:
|
|
19
|
+
- 'lib/mediawiki_selenium/step_definitions/upload_file_steps.rb'
|
|
20
|
+
|
|
21
|
+
# Offense count: 2
|
|
22
|
+
# Cop supports --auto-correct.
|
|
23
|
+
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
|
24
|
+
# SupportedStyles: empty_lines, no_empty_lines
|
|
25
|
+
Layout/EmptyLinesAroundBlockBody:
|
|
26
|
+
Exclude:
|
|
27
|
+
- 'spec/environment_spec.rb'
|
|
28
|
+
|
|
29
|
+
# Offense count: 1
|
|
30
|
+
# Cop supports --auto-correct.
|
|
31
|
+
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
|
32
|
+
# SupportedStyles: auto_detection, squiggly, active_support, powerpack, unindent
|
|
33
|
+
Layout/IndentHeredoc:
|
|
34
|
+
Exclude:
|
|
35
|
+
- 'lib/mediawiki_selenium/step_definitions/resource_loader_steps.rb'
|
|
36
|
+
|
|
37
|
+
# Offense count: 2
|
|
38
|
+
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
|
39
|
+
# SupportedStyles: lowercase, uppercase
|
|
40
|
+
Naming/HeredocDelimiterCase:
|
|
41
|
+
Exclude:
|
|
42
|
+
- 'lib/mediawiki_selenium/step_definitions/resource_loader_steps.rb'
|
|
43
|
+
- 'mediawiki_selenium.gemspec'
|
|
44
|
+
|
|
45
|
+
# Offense count: 5
|
|
46
|
+
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
|
47
|
+
# SupportedStyles: nested, compact
|
|
48
|
+
Style/ClassAndModuleChildren:
|
|
49
|
+
Exclude:
|
|
50
|
+
- 'lib/mediawiki_selenium/cucumber/sauce.rb'
|
|
51
|
+
- 'spec/browser_factory/base_spec.rb'
|
|
52
|
+
- 'spec/browser_factory/chrome_spec.rb'
|
|
53
|
+
- 'spec/browser_factory/firefox_spec.rb'
|
|
54
|
+
- 'spec/browser_factory/phantomjs_spec.rb'
|
|
55
|
+
|
|
56
|
+
# Offense count: 1
|
|
57
|
+
# Cop supports --auto-correct.
|
|
58
|
+
Style/Encoding:
|
|
59
|
+
Exclude:
|
|
60
|
+
- 'mediawiki_selenium.gemspec'
|
|
61
|
+
|
|
62
|
+
# Offense count: 7
|
|
63
|
+
# Cop supports --auto-correct.
|
|
64
|
+
# Configuration parameters: MinSize, SupportedStyles.
|
|
65
|
+
# SupportedStyles: percent, brackets
|
|
66
|
+
Style/SymbolArray:
|
|
67
|
+
EnforcedStyle: brackets
|
data/CREDITS
CHANGED
|
@@ -2,7 +2,7 @@ mediawiki_selenium is a collaborative project released under the
|
|
|
2
2
|
GNU General Public License v2. We would like to recognize the
|
|
3
3
|
following names for their contribution to the product.
|
|
4
4
|
|
|
5
|
-
For further details on licensing, see the LICENSE file.
|
|
5
|
+
For further details on licensing, see the LICENSE.md file.
|
|
6
6
|
|
|
7
7
|
== Developers ==
|
|
8
8
|
* Antoine Musso
|
data/{LICENSE → LICENSE.md}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
# License and copyright information
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
## License
|
|
4
4
|
|
|
5
5
|
MediaWiki is licensed under the terms of the GNU General Public License,
|
|
6
6
|
version 2 or later. Derivative works and later versions of the code must be
|
|
@@ -12,12 +12,12 @@ For the full text of version 2 of the license, see
|
|
|
12
12
|
https://www.gnu.org/licenses/gpl-2.0.html or '''GNU General Public License'''
|
|
13
13
|
below.
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
## Copyright owners
|
|
16
16
|
|
|
17
17
|
MediaWiki contributors, including those listed in the CREDITS file, hold the
|
|
18
18
|
copyright to this work.
|
|
19
19
|
|
|
20
|
-
|
|
20
|
+
## Additional license information
|
|
21
21
|
|
|
22
22
|
Some components of MediaWiki imported from other projects may be under other
|
|
23
23
|
Free and Open Source, or Free Culture, licenses. Specific details of their
|
|
@@ -36,7 +36,7 @@ CC licenses:
|
|
|
36
36
|
These icons are trademarked, and used subject to the CC trademark license,
|
|
37
37
|
available at http://creativecommons.org/policies#trademark
|
|
38
38
|
|
|
39
|
-
|
|
39
|
+
# GNU GENERAL PUBLIC LICENSE
|
|
40
40
|
|
|
41
41
|
Version 2, June 1991
|
|
42
42
|
|
|
@@ -45,7 +45,7 @@ Copyright (C) 1989, 1991 Free Software Foundation, Inc.
|
|
|
45
45
|
Everyone is permitted to copy and distribute verbatim copies
|
|
46
46
|
of this license document, but changing it is not allowed.
|
|
47
47
|
|
|
48
|
-
|
|
48
|
+
## Preamble
|
|
49
49
|
|
|
50
50
|
The licenses for most software are designed to take away your
|
|
51
51
|
freedom to share and change it. By contrast, the GNU General Public
|
|
@@ -95,7 +95,7 @@ patent must be licensed for everyone's free use or not licensed at all.
|
|
|
95
95
|
The precise terms and conditions for copying, distribution and
|
|
96
96
|
modification follow.
|
|
97
97
|
|
|
98
|
-
|
|
98
|
+
# TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
|
99
99
|
|
|
100
100
|
'''0.''' This License applies to any program or other work which contains
|
|
101
101
|
a notice placed by the copyright holder saying it may be distributed
|
|
@@ -293,7 +293,7 @@ make exceptions for this. Our decision will be guided by the two goals
|
|
|
293
293
|
of preserving the free status of all derivatives of our free software and
|
|
294
294
|
of promoting the sharing and reuse of software generally.
|
|
295
295
|
|
|
296
|
-
|
|
296
|
+
## NO WARRANTY
|
|
297
297
|
|
|
298
298
|
'''11.''' BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
|
|
299
299
|
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
|
|
@@ -317,7 +317,7 @@ POSSIBILITY OF SUCH DAMAGES.
|
|
|
317
317
|
|
|
318
318
|
'''END OF TERMS AND CONDITIONS'''
|
|
319
319
|
|
|
320
|
-
|
|
320
|
+
# How to Apply These Terms to Your New Programs
|
|
321
321
|
|
|
322
322
|
If you develop a new program, and you want it to be of the greatest
|
|
323
323
|
possible use to the public, the best way to achieve this is to make it
|
data/README.md
CHANGED
|
@@ -204,6 +204,10 @@ the destination path for screenshots. Example:
|
|
|
204
204
|
|
|
205
205
|
SCREENSHOT_FAILURES=true SCREENSHOT_FAILURES_PATH="/tmp/screenshots" bundle exec cucumber
|
|
206
206
|
|
|
207
|
+
## [Sauce Labs](https://www.mediawiki.org/wiki/Selenium/Ruby/Target_beta_cluster_using_Sauce_Labs)
|
|
208
|
+
|
|
209
|
+
Sauce Labs gives you access to a variety of browsers and platforms for testing.
|
|
210
|
+
|
|
207
211
|
### CI Rake task
|
|
208
212
|
|
|
209
213
|
To utilize the CI rake task, add the following to your `Rakefile`:
|
|
@@ -301,3 +305,8 @@ Announce the new release at [QA](https://lists.wikimedia.org/mailman/listinfo/qa
|
|
|
301
305
|
## Release notes
|
|
302
306
|
|
|
303
307
|
See {file:RELEASES.md}.
|
|
308
|
+
|
|
309
|
+
## {file:LICENSE.md}
|
|
310
|
+
|
|
311
|
+
© Copyright 2013-2017, Wikimedia Foundation & Contributors. Released under the terms of the GNU General Public License, version 2 or later.
|
|
312
|
+
|
data/RELEASES.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
## Release notes
|
|
2
2
|
|
|
3
|
+
### 1.8.1 2018-06-14
|
|
4
|
+
* Required Ruby version is 2.x
|
|
5
|
+
* Upgrade selenium-webdriver to 3.2
|
|
6
|
+
* Integration tests use Chrome instead of PhantomJS
|
|
7
|
+
* Added license to readme file
|
|
8
|
+
* Documented Sauce Labs usage in readme file
|
|
9
|
+
* Updated Special:Preferences/reset page
|
|
10
|
+
|
|
3
11
|
### 1.8.0 2017-02-27
|
|
4
12
|
* Remove raita entirely
|
|
5
13
|
* Major updates in dependencies:
|
|
@@ -98,7 +106,7 @@
|
|
|
98
106
|
scenario outlines
|
|
99
107
|
|
|
100
108
|
### 1.2.0 2015-05-28
|
|
101
|
-
* Support logging to a
|
|
109
|
+
* Support logging to a Raita
|
|
102
110
|
Elasticsearch database by setting `RAITA_URL`
|
|
103
111
|
* Removed deprecated support for `MEDIAWIKI_PASSWORD_VARIABLE`
|
|
104
112
|
|
|
@@ -4,14 +4,14 @@ Feature: Basic usage
|
|
|
4
4
|
Background:
|
|
5
5
|
Given I have configured my environment from `ENV` and with:
|
|
6
6
|
"""
|
|
7
|
-
browser:
|
|
7
|
+
browser: chrome
|
|
8
8
|
"""
|
|
9
9
|
And I have set "MEDIAWIKI_URL" in my shell
|
|
10
10
|
And I am using a local browser
|
|
11
11
|
|
|
12
12
|
Scenario: The configured browser is used
|
|
13
13
|
When I start interacting with the browser
|
|
14
|
-
Then the browser name is `:
|
|
14
|
+
Then the browser name is `:chrome`
|
|
15
15
|
|
|
16
16
|
Scenario: Browsers are started on-demand
|
|
17
17
|
When I start interacting with the browser
|
|
@@ -21,7 +21,7 @@ end
|
|
|
21
21
|
|
|
22
22
|
When(/^I run `rspec` against my examples$/) do
|
|
23
23
|
env = { 'MEDIAWIKI_ENVIRONMENT' => 'default' }
|
|
24
|
-
cmd =
|
|
24
|
+
cmd = 'bundle exec rspec'
|
|
25
25
|
|
|
26
26
|
@rspec_output, @rspec_status = Open3.capture2e(env, cmd, chdir: 'tmp/rspec')
|
|
27
27
|
end
|
data/mediawiki_selenium.gemspec
CHANGED
|
@@ -27,7 +27,12 @@ Gem::Specification.new do |spec|
|
|
|
27
27
|
spec.files = `git ls-files`.split($INPUT_RECORD_SEPARATOR)
|
|
28
28
|
spec.require_paths = ['lib']
|
|
29
29
|
|
|
30
|
+
spec.required_ruby_version = '~> 2.0'
|
|
31
|
+
|
|
30
32
|
spec.add_runtime_dependency 'cucumber', '~> 1.3', '>= 1.3.20'
|
|
33
|
+
# Locking data_magic to version 1.1 because 1.2 requires Ruby version >= 2.2 and
|
|
34
|
+
# Jenkins is on 2.1.0
|
|
35
|
+
spec.add_runtime_dependency 'data_magic', '~> 1.1.0'
|
|
31
36
|
spec.add_runtime_dependency 'headless', '~> 2.0', '>= 2.1.0'
|
|
32
37
|
spec.add_runtime_dependency 'json', '~> 2.0', '>= 2.0.2'
|
|
33
38
|
spec.add_runtime_dependency 'mediawiki_api', '~> 0.7', '>= 0.7.0'
|
|
@@ -35,7 +40,7 @@ Gem::Specification.new do |spec|
|
|
|
35
40
|
spec.add_runtime_dependency 'rest-client', '~> 1.6', '>= 1.6.7'
|
|
36
41
|
spec.add_runtime_dependency 'rspec-core', '~> 2.14', '>= 2.14.4'
|
|
37
42
|
spec.add_runtime_dependency 'rspec-expectations', '~> 2.14', '>= 2.14.4'
|
|
38
|
-
spec.add_runtime_dependency 'selenium-webdriver', '~> 3.
|
|
43
|
+
spec.add_runtime_dependency 'selenium-webdriver', '~> 3.2'
|
|
39
44
|
spec.add_runtime_dependency 'syntax', '~> 1.2', '>= 1.2.0'
|
|
40
45
|
spec.add_runtime_dependency 'thor', '~> 0.19', '>= 0.19.1'
|
|
41
46
|
|
|
@@ -43,6 +48,6 @@ Gem::Specification.new do |spec|
|
|
|
43
48
|
spec.add_development_dependency 'bundler', '~> 1.6', '>= 1.6.3'
|
|
44
49
|
spec.add_development_dependency 'yard', '~> 0.8', '>= 0.8.7.4'
|
|
45
50
|
spec.add_development_dependency 'redcarpet', '~> 3.2', '>= 3.2.0'
|
|
46
|
-
spec.add_development_dependency 'rubocop', '~> 0.
|
|
51
|
+
spec.add_development_dependency 'rubocop', '~> 0.51.0'
|
|
47
52
|
spec.add_development_dependency 'rspec-mocks', '~> 2.14', '>= 2.14.4'
|
|
48
53
|
end
|
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: 1.8.
|
|
4
|
+
version: 1.8.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Chris McMahon
|
|
@@ -13,7 +13,7 @@ authors:
|
|
|
13
13
|
autorequire:
|
|
14
14
|
bindir: bin
|
|
15
15
|
cert_chain: []
|
|
16
|
-
date:
|
|
16
|
+
date: 2018-06-14 00:00:00.000000000 Z
|
|
17
17
|
dependencies:
|
|
18
18
|
- !ruby/object:Gem::Dependency
|
|
19
19
|
name: cucumber
|
|
@@ -35,6 +35,20 @@ dependencies:
|
|
|
35
35
|
- - ">="
|
|
36
36
|
- !ruby/object:Gem::Version
|
|
37
37
|
version: 1.3.20
|
|
38
|
+
- !ruby/object:Gem::Dependency
|
|
39
|
+
name: data_magic
|
|
40
|
+
requirement: !ruby/object:Gem::Requirement
|
|
41
|
+
requirements:
|
|
42
|
+
- - "~>"
|
|
43
|
+
- !ruby/object:Gem::Version
|
|
44
|
+
version: 1.1.0
|
|
45
|
+
type: :runtime
|
|
46
|
+
prerelease: false
|
|
47
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
48
|
+
requirements:
|
|
49
|
+
- - "~>"
|
|
50
|
+
- !ruby/object:Gem::Version
|
|
51
|
+
version: 1.1.0
|
|
38
52
|
- !ruby/object:Gem::Dependency
|
|
39
53
|
name: headless
|
|
40
54
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -175,14 +189,14 @@ dependencies:
|
|
|
175
189
|
requirements:
|
|
176
190
|
- - "~>"
|
|
177
191
|
- !ruby/object:Gem::Version
|
|
178
|
-
version: 3.
|
|
192
|
+
version: '3.2'
|
|
179
193
|
type: :runtime
|
|
180
194
|
prerelease: false
|
|
181
195
|
version_requirements: !ruby/object:Gem::Requirement
|
|
182
196
|
requirements:
|
|
183
197
|
- - "~>"
|
|
184
198
|
- !ruby/object:Gem::Version
|
|
185
|
-
version: 3.
|
|
199
|
+
version: '3.2'
|
|
186
200
|
- !ruby/object:Gem::Dependency
|
|
187
201
|
name: syntax
|
|
188
202
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -303,14 +317,14 @@ dependencies:
|
|
|
303
317
|
requirements:
|
|
304
318
|
- - "~>"
|
|
305
319
|
- !ruby/object:Gem::Version
|
|
306
|
-
version: 0.
|
|
320
|
+
version: 0.51.0
|
|
307
321
|
type: :development
|
|
308
322
|
prerelease: false
|
|
309
323
|
version_requirements: !ruby/object:Gem::Requirement
|
|
310
324
|
requirements:
|
|
311
325
|
- - "~>"
|
|
312
326
|
- !ruby/object:Gem::Version
|
|
313
|
-
version: 0.
|
|
327
|
+
version: 0.51.0
|
|
314
328
|
- !ruby/object:Gem::Dependency
|
|
315
329
|
name: rspec-mocks
|
|
316
330
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -349,12 +363,13 @@ files:
|
|
|
349
363
|
- ".gitreview"
|
|
350
364
|
- ".rspec"
|
|
351
365
|
- ".rubocop.yml"
|
|
366
|
+
- ".rubocop_todo.yml"
|
|
352
367
|
- ".ruby-gemset"
|
|
353
368
|
- ".ruby-version"
|
|
354
369
|
- ".yardopts"
|
|
355
370
|
- CREDITS
|
|
356
371
|
- Gemfile
|
|
357
|
-
- LICENSE
|
|
372
|
+
- LICENSE.md
|
|
358
373
|
- README.md
|
|
359
374
|
- RELEASES.md
|
|
360
375
|
- Rakefile
|
|
@@ -447,9 +462,9 @@ require_paths:
|
|
|
447
462
|
- lib
|
|
448
463
|
required_ruby_version: !ruby/object:Gem::Requirement
|
|
449
464
|
requirements:
|
|
450
|
-
- - "
|
|
465
|
+
- - "~>"
|
|
451
466
|
- !ruby/object:Gem::Version
|
|
452
|
-
version: '0'
|
|
467
|
+
version: '2.0'
|
|
453
468
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
454
469
|
requirements:
|
|
455
470
|
- - ">="
|
|
@@ -457,9 +472,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
457
472
|
version: '0'
|
|
458
473
|
requirements: []
|
|
459
474
|
rubyforge_project:
|
|
460
|
-
rubygems_version: 2.
|
|
475
|
+
rubygems_version: 2.7.7
|
|
461
476
|
signing_key:
|
|
462
477
|
specification_version: 4
|
|
463
478
|
summary: An easy way to run MediaWiki Selenium tests.
|
|
464
479
|
test_files: []
|
|
465
|
-
has_rdoc:
|