mediawiki_selenium 0.2.2 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b04d5fe4823e8b23cb117dc37667c009ebcd5d5a
|
4
|
+
data.tar.gz: 97d0060f18c5747c8b8521d7db15b924989ea416
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3536f0412c401a05b5d2b6826b6156275a3302c276e07486b078cf840f3b73fdef156fc069c6426330f9c3eda4850d9e7a16874a499ad53ccdca14bffd0d0d3a
|
7
|
+
data.tar.gz: e457c17fc966214776b88bce31a4e26d1c8853c986895724871d3546d6e8c67fbf907023e253253a65158979aedd33f9a368d0e26f1b276b942638b3893eea44
|
data/Gemfile.lock
ADDED
data/README.md
CHANGED
@@ -47,6 +47,20 @@ By default, the browser will close itself at the end of every scenario. If you w
|
|
47
47
|
export KEEP_BROWSER_OPEN=true # Linux/Unix/Mac
|
48
48
|
set KEEP_BROWSER_OPEN=true # Windows
|
49
49
|
|
50
|
+
## Screenshots
|
51
|
+
|
52
|
+
You can get screenshots on failures (since 0.2.1) by setting the environment variable SCREENSHOT_FAILURES to "true", screenshots will be written under the `screenshots` directory relatively to working directory. The SCREENSHOT_FAILURES_PATH environment variable (since 0.2.2) let you override the destination path for screenshots. Example:
|
53
|
+
|
54
|
+
SCREENSHOT_FAILURES=true SCREENSHOT_FAILURES_PATH="/tmp/screenshots" bundle exec cucumber
|
55
|
+
|
56
|
+
## Update your Gemfile
|
57
|
+
|
58
|
+
In your repository, the Gemfile specify dependencies and Gemfile.lock defines the whole dependency tree. To update it simply run:
|
59
|
+
|
60
|
+
bundle update
|
61
|
+
|
62
|
+
It will fetch all dependencies and updates the Gemfile.lock file, you can then commit back both files.
|
63
|
+
|
50
64
|
## Links
|
51
65
|
|
52
66
|
mediawiki_selenium gem: [Gerrit](https://gerrit.wikimedia.org/r/#/admin/projects/mediawiki/selenium), [GitHub](https://github.com/wikimedia/mediawiki-selenium), [RubyGems](https://rubygems.org/gems/mediawiki_selenium), [Code Climate](https://codeclimate.com/github/wikimedia/mediawiki-selenium)
|
@@ -31,9 +31,10 @@ end
|
|
31
31
|
After do |scenario|
|
32
32
|
if scenario.failed? && (ENV["SCREENSHOT_FAILURES"] == "true")
|
33
33
|
require "fileutils"
|
34
|
-
|
34
|
+
screen_dir = ENV["SCREENSHOT_FAILURES_PATH"] || "screenshots"
|
35
|
+
FileUtils.mkdir_p screen_dir
|
35
36
|
name = test_name(scenario).gsub(/ /, '_')
|
36
|
-
path = "
|
37
|
+
path = "#{screen_dir}/#{name}.png"
|
37
38
|
@browser.screenshot.save path
|
38
39
|
embed path, "image/png"
|
39
40
|
end
|
@@ -10,9 +10,9 @@ https://git.wikimedia.org/blob/mediawiki%2Fselenium/HEAD/CREDITS.
|
|
10
10
|
=end
|
11
11
|
|
12
12
|
class ResetPreferencesPage
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
include PageObject
|
14
|
+
include URL
|
15
|
+
page_url URL.url("Special:Preferences/reset")
|
16
16
|
|
17
|
-
|
17
|
+
button(:submit, class: "mw-htmlform-submit")
|
18
18
|
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: 0.2.
|
4
|
+
version: 0.2.3
|
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-13 00:00:00.000000000 Z
|
16
16
|
dependencies:
|
17
17
|
- !ruby/object:Gem::Dependency
|
18
18
|
name: cucumber
|
@@ -190,6 +190,7 @@ files:
|
|
190
190
|
- ".gitreview"
|
191
191
|
- CREDITS
|
192
192
|
- Gemfile
|
193
|
+
- Gemfile.lock
|
193
194
|
- LICENSE
|
194
195
|
- README.md
|
195
196
|
- docs/UploadWizard.md
|