mediawiki_selenium 0.2.11 → 0.2.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +23 -14
- data/lib/mediawiki_selenium.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: 99b7b4ccc4f6df7bc91ad09c998b40fd82474713
|
4
|
+
data.tar.gz: 9ce4df71916e28f2fad9b6820b2a17fa658b5af1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 94e23716e38d82fb75f48963f7829cb6576587f0d233b031f24b911d3c7afe4b862969d5317210898c44ef0368c2dcafdee0b65cc2bacbae0a76acbe3410c646
|
7
|
+
data.tar.gz: 0463a7435c9bca068acd42d61f65e4f7ee180790a0956fa25c070d9c1791568b5055c4fbb4692c2deb0bb187dd86925831d78063d42eeeee17bc2d320f150b1d
|
data/README.md
CHANGED
@@ -11,8 +11,8 @@ versions of RubyGems and Firefox (the default browser in which the tests run).
|
|
11
11
|
The easiest way to install Ruby on Linux/Unix/Mac is [RVM](https://rvm.io/) and
|
12
12
|
on Windows [RubyInstaller](http://rubyinstaller.org/).
|
13
13
|
|
14
|
-
ALERT: On Windows you must use Ruby 1.9.3 for now because
|
15
|
-
|
14
|
+
ALERT: On Windows you must use Ruby 1.9.3 for now because Cucumber currently
|
15
|
+
doesn't work with Ruby 2.
|
16
16
|
|
17
17
|
cd /tests/browser
|
18
18
|
gem update --system
|
@@ -22,7 +22,7 @@ library currently doesn't work with Ruby 2.x.x.
|
|
22
22
|
If you're not using RVM to manage your Ruby versions, you will need to run the
|
23
23
|
commands as root (using `sudo`).
|
24
24
|
|
25
|
-
Environment variables MEDIAWIKI_USER and MEDIAWIKI_PASSWORD are required for
|
25
|
+
Environment variables `MEDIAWIKI_USER` and `MEDIAWIKI_PASSWORD` are required for
|
26
26
|
tests tagged `@login`. For local testing, create a test user on your local wiki
|
27
27
|
and export the user and password as the values for those variables.
|
28
28
|
For example:
|
@@ -46,7 +46,9 @@ the tests elsewhere, set the `MEDIAWIKI_URL` environment variable. For example:
|
|
46
46
|
To run a single test file enter `bundle exec cucumber features/FEATURE_NAME.feature`.
|
47
47
|
|
48
48
|
To run a single test scenario, put a colon and the line number (NN) on which
|
49
|
-
the scenario begins after the file name:
|
49
|
+
the scenario begins after the file name:
|
50
|
+
|
51
|
+
bundle exec cucumber features/FEATURE_NAME.feature:NN
|
50
52
|
|
51
53
|
You can use a different browser with the `BROWSER` env variable, the fastest is
|
52
54
|
probably PhantomJS, a headless browser:
|
@@ -63,22 +65,22 @@ to `true`:
|
|
63
65
|
|
64
66
|
## Screenshots
|
65
67
|
|
66
|
-
You can get screenshots on failures
|
67
|
-
variable SCREENSHOT_FAILURES to
|
68
|
+
You can get screenshots on failures by setting the environment
|
69
|
+
variable `SCREENSHOT_FAILURES` to `true`. Screenshots will be written under the
|
68
70
|
`screenshots` directory relatively to working directory. The
|
69
|
-
SCREENSHOT_FAILURES_PATH environment variable
|
71
|
+
`SCREENSHOT_FAILURES_PATH` environment variable lets you override
|
70
72
|
the destination path for screenshots. Example:
|
71
73
|
|
72
|
-
|
74
|
+
SCREENSHOT_FAILURES=true SCREENSHOT_FAILURES_PATH="/tmp/screenshots" bundle exec cucumber
|
73
75
|
|
74
76
|
## Update your Gemfile
|
75
77
|
|
76
|
-
In your repository, the Gemfile
|
78
|
+
In your repository, the `Gemfile` specifies dependencies and `Gemfile.lock` defines
|
77
79
|
the whole dependency tree. To update it simply run:
|
78
80
|
|
79
81
|
bundle update
|
80
82
|
|
81
|
-
It will fetch all dependencies and
|
83
|
+
It will fetch all dependencies and update the `Gemfile.lock` file, you can then
|
82
84
|
commit back both files.
|
83
85
|
|
84
86
|
## Links
|
@@ -95,7 +97,7 @@ Repositories that use the gem:
|
|
95
97
|
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)
|
96
98
|
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)
|
97
99
|
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)
|
98
|
-
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/
|
100
|
+
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/tw/), [Code Climate](https://codeclimate.com/github/wikimedia/mediawiki-extensions-TwnMainPage)
|
99
101
|
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)
|
100
102
|
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)
|
101
103
|
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
|
@@ -112,12 +114,19 @@ Repositories that use the gem:
|
|
112
114
|
4. Push to the branch (`git push origin my-new-feature`)
|
113
115
|
5. Create new Pull Request
|
114
116
|
|
115
|
-
https://www.mediawiki.org/wiki/QA/Browser_testing#How_to_contribute
|
117
|
+
Also see https://www.mediawiki.org/wiki/QA/Browser_testing#How_to_contribute
|
116
118
|
|
117
119
|
## Release notes
|
118
120
|
|
119
121
|
### 0.2.8
|
120
122
|
|
121
|
-
|
123
|
+
* Possibility to set BROWSER_TIMEOUT.
|
124
|
+
|
125
|
+
### 0.2.2
|
126
|
+
|
127
|
+
* `SCREENSHOT_FAILURES_PATH` environment variable lets you override the destination path for screenshots.
|
128
|
+
|
129
|
+
### 0.2.1
|
130
|
+
|
131
|
+
* Get screenshots on failures by setting the environment variable `SCREENSHOT_FAILURES` to `true`.
|
122
132
|
|
123
|
-
* Possibility to set BROWSER_TIMEOUT
|
data/lib/mediawiki_selenium.rb
CHANGED
@@ -18,6 +18,7 @@ require "mediawiki_selenium/support/sauce"
|
|
18
18
|
require "mediawiki_selenium/step_definitions/login_steps"
|
19
19
|
require "mediawiki_selenium/step_definitions/navigation_steps"
|
20
20
|
require "mediawiki_selenium/step_definitions/preferences_steps"
|
21
|
+
require "mediawiki_selenium/step_definitions/resource_loader_steps"
|
21
22
|
|
22
23
|
require "mediawiki_selenium/support/modules/url_module"
|
23
24
|
|
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.12
|
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-03-
|
15
|
+
date: 2014-03-13 00:00:00.000000000 Z
|
16
16
|
dependencies:
|
17
17
|
- !ruby/object:Gem::Dependency
|
18
18
|
name: cucumber
|