mediawiki_selenium 0.2.2 → 0.2.3

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: 9b405dae21d5f2bebb99264238da98b1b5be4669
4
- data.tar.gz: bf6064004d8ad66be92cdb783374cb5ad1f8be6c
3
+ metadata.gz: b04d5fe4823e8b23cb117dc37667c009ebcd5d5a
4
+ data.tar.gz: 97d0060f18c5747c8b8521d7db15b924989ea416
5
5
  SHA512:
6
- metadata.gz: 179b553c6b0163c10192089843a480b7b4f0d1d04000a3cf15dddf774d8be5a17e100f462f48b01b822d96a9ddfedc25b0194dc1ae29dc327c981a6cd6310ffb
7
- data.tar.gz: de82a420a77b4a0900707e8e93b4cf1ac58d0520002e5b1db1283c751a5fb0617ca0f37c08a87c6d602e6b822482bfd5908b8f9f2fb74ed6da9eaef7ee85b99e
6
+ metadata.gz: 3536f0412c401a05b5d2b6826b6156275a3302c276e07486b078cf840f3b73fdef156fc069c6426330f9c3eda4850d9e7a16874a499ad53ccdca14bffd0d0d3a
7
+ data.tar.gz: e457c17fc966214776b88bce31a4e26d1c8853c986895724871d3546d6e8c67fbf907023e253253a65158979aedd33f9a368d0e26f1b276b942638b3893eea44
@@ -0,0 +1,7 @@
1
+ GEM
2
+ specs:
3
+
4
+ PLATFORMS
5
+ ruby
6
+
7
+ DEPENDENCIES
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
- FileUtils.mkdir_p "screenshots"
34
+ screen_dir = ENV["SCREENSHOT_FAILURES_PATH"] || "screenshots"
35
+ FileUtils.mkdir_p screen_dir
35
36
  name = test_name(scenario).gsub(/ /, '_')
36
- path = "screenshots/#{name}.png"
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
- include PageObject
14
- include URL
15
- page_url URL.url("Special:Preferences/reset")
13
+ include PageObject
14
+ include URL
15
+ page_url URL.url("Special:Preferences/reset")
16
16
 
17
- button(:submit, class: "mw-htmlform-submit")
17
+ button(:submit, class: "mw-htmlform-submit")
18
18
  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.2"
13
+ VERSION = "0.2.3"
14
14
  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.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-10 00:00:00.000000000 Z
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