mediawiki_selenium 0.2.16 → 0.2.17

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: 2b70e97df2d25875240d12e6ec8260defdfe68c7
4
- data.tar.gz: e61d438c6d0c53577ba563def549e997539bbd29
3
+ metadata.gz: 3e18ad61600ba32938ee3d52417e57623378daa1
4
+ data.tar.gz: 0ce9c99da1c4030c52bdca18971865a82592a4e0
5
5
  SHA512:
6
- metadata.gz: 9e9ce6a781fcd280d74c9b35fbbabe1edd88a8a13b156a01a6bdcf132d5fdb38f366946b69f94ccd8130a0a52f72869484c45c226806d685b0a5343f4a34e7c3
7
- data.tar.gz: 5391759c3db13de20c10f549fd944abc7d0cf389dbf74a3b4be26bcadc16fbf79688bd7b80d4e3b9faa76912435b46525c2765acdea88d5ceb2532ae33b8a3f5
6
+ metadata.gz: 61a5702a3cc8c961944d7d9b25b177f8c0462379085edb346850c6023ac0afe45e49dfd0c79f980efcacf6b6c8a351f6d9cbb1121eda1a9a15bf5ba722e55668
7
+ data.tar.gz: 6efc292f7d9d847b529ef64c0805013db556984055c4f890ded7644eb538af6433a1382058bd1eecbc768573953c317b3f3485b3baeb28cbd8b701f2699e8ffc
data/README.md CHANGED
@@ -11,9 +11,6 @@ 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 Cucumber currently
15
- doesn't work with Ruby 2.
16
-
17
14
  cd /tests/browser
18
15
  gem update --system
19
16
  gem install bundler
@@ -28,10 +25,12 @@ and export the user and password as the values for those variables.
28
25
  For example:
29
26
 
30
27
  export MEDIAWIKI_USER=<username here> # Linux/Unix/Mac
31
- set MEDIAWIKI_USER=<username here> # Windows
28
+ set MEDIAWIKI_USER=<username here> # Windows Command Prompt
29
+ $env:MEDIAWIKI_USER="<username here>" # Windows PowerShell
32
30
 
33
31
  export MEDIAWIKI_PASSWORD=<password here> # Linux/Unix/Mac
34
- set MEDIAWIKI_PASSWORD=<password here> # Windows
32
+ set MEDIAWIKI_PASSWORD=<password here> # Windows Command Prompt
33
+ $env:MEDIAWIKI_PASSWORD="<password here>" # Windows PowerShell
35
34
 
36
35
  ## Usage
37
36
 
@@ -41,9 +40,12 @@ By default the tests run at en.wikipedia.beta.wmflabs.org. If you want to run
41
40
  the tests elsewhere, set the `MEDIAWIKI_URL` environment variable. For example:
42
41
 
43
42
  export MEDIAWIKI_URL=http://commons.wikimedia.beta.wmflabs.org/wiki/ # Linux/Unix/Mac
44
- set MEDIAWIKI_URL=http://commons.wikimedia.beta.wmflabs.org/wiki/ # Windows
43
+ set MEDIAWIKI_URL=http://commons.wikimedia.beta.wmflabs.org/wiki/ # Windows Command Prompt
44
+ $env:MEDIAWIKI_URL="http://commons.wikimedia.beta.wmflabs.org/wiki/" # Windows PowerShell
45
+
46
+ To run a single test file:
45
47
 
46
- To run a single test file enter `bundle exec cucumber features/FEATURE_NAME.feature`.
48
+ bundle exec cucumber features/FEATURE_NAME.feature
47
49
 
48
50
  To run a single test scenario, put a colon and the line number (NN) on which
49
51
  the scenario begins after the file name:
@@ -54,14 +56,16 @@ You can use a different browser with the `BROWSER` env variable, the fastest is
54
56
  probably PhantomJS, a headless browser:
55
57
 
56
58
  export BROWSER=phantomjs # Linux/Unix/Mac
57
- set BROWSER=phantomjs # Windows
59
+ set BROWSER=phantomjs # Windows Command Prompt
60
+ $env:BROWSER="internet_explorer" # Windows PowerShell
58
61
 
59
62
  By default, the browser will close itself at the end of every scenario. If you
60
63
  want the browser to stay open, set the environment variable `KEEP_BROWSER_OPEN`
61
64
  to `true`:
62
65
 
63
66
  export KEEP_BROWSER_OPEN=true # Linux/Unix/Mac
64
- set KEEP_BROWSER_OPEN=true # Windows
67
+ set KEEP_BROWSER_OPEN=true # Windows Command Prompt
68
+ $env:KEEP_BROWSER_OPEN="true" # Windows PowerShell
65
69
 
66
70
  ## Screenshots
67
71
 
@@ -19,6 +19,7 @@ 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
21
  require "mediawiki_selenium/step_definitions/resource_loader_steps"
22
+ require "mediawiki_selenium/step_definitions/upload_file_steps"
22
23
 
23
24
  require "mediawiki_selenium/support/modules/url_module"
24
25
 
@@ -32,6 +32,6 @@ class LoginPage
32
32
  self.password_element.when_present.send_keys(password)
33
33
  login_element.fire_event("onfocus")
34
34
  login_element.when_present.click
35
- logout_element.when_present if wait_for_logout_element
35
+ logout_element.when_present(10) if wait_for_logout_element
36
36
  end
37
37
  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.16"
13
+ VERSION = "0.2.17"
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.16
4
+ version: 0.2.17
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-21 00:00:00.000000000 Z
15
+ date: 2014-04-08 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: cucumber