mediawiki-selenium 0.1.1 → 0.1.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: d8ad7e6cc48f2352af33df5d0987c48ae695b1b3
4
- data.tar.gz: 43933c40add6ac0bd4e1d380cb5a73b02e8cf5d9
3
+ metadata.gz: 1eca8418181b944e7634f86ef113384fc6acb12f
4
+ data.tar.gz: ce07d480d8b3028a2b833f82bee1bc5997a95c68
5
5
  SHA512:
6
- metadata.gz: 8dd0b43f5937440a797504ad153da4b2097894437a0fd0816bc63b60eac353d18c9ed47080372ca575aeba236c3e6c2c8b8aa90a32f1761c4dee3ebf28b351cb
7
- data.tar.gz: bb70995b6f9d7943f1d03cf084069481b76679b2ded51c971d229d12f4e81f9a58baadf4067f45a92fc89db21eefb591e6c06898afe1d424c52fbb571b3b8eae
6
+ metadata.gz: 39647031692a40d5872ce9d5ca6faefff9b6082ae46544b80120c742be78f3653ae3f4249d3e4e7e931bc99c49df36c5c09c1554a7c4205d31eff9aa3af99e2e
7
+ data.tar.gz: a52f56e75c0647a0b63e82d2588d45bf69c958ec474284ceddf7a23a65503c2a4cecb4f4e154032e79dabd4161083a558b7e9db40017bc740bb64ee2a34ce3a4
@@ -10,6 +10,7 @@ https://github.com/zeljkofilipin/mediawiki-selenium/blob/master//CREDITS.
10
10
  =end
11
11
 
12
12
  require "mediawiki/selenium/env"
13
+ require "mediawiki/selenium/hooks"
13
14
  require "mediawiki/selenium/sauce"
14
15
  require "mediawiki/selenium/version"
15
16
 
@@ -16,11 +16,6 @@ Before('@login') do
16
16
  puts "MEDIAWIKI_PASSWORD environment variable is not defined! Please export a value for that variable before proceeding." unless ENV['MEDIAWIKI_PASSWORD']
17
17
  end
18
18
 
19
- Before('@language') do |scenario|
20
- @language = true
21
- @scenario = scenario
22
- end
23
-
24
19
  Before do |scenario|
25
20
  @config = config
26
21
  @random_string = Random.new.rand.to_s
@@ -37,22 +32,3 @@ After do |scenario|
37
32
  end
38
33
  @browser.close unless ENV['KEEP_BROWSER_OPEN'] == 'true'
39
34
  end
40
-
41
- # only UniversalLanguageSelector needs this
42
-
43
- Before('@uls-in-personal-only') do |scenario|
44
- if uls_position() != 'personal'
45
- scenario.skip_invoke!
46
- end
47
- end
48
-
49
- Before('@uls-in-sidebar-only') do |scenario|
50
- if uls_position() != 'interlanguage'
51
- scenario.skip_invoke!
52
- end
53
- end
54
-
55
- After('@reset-preferences-after') do |scenario|
56
- visit(ResetPreferencesPage)
57
- on(ResetPreferencesPage).submit_element.click
58
- end
@@ -0,0 +1,33 @@
1
+ =begin
2
+ This file is subject to the license terms in the LICENSE file found in the
3
+ mediawiki-selenium top-level directory of and at
4
+ https://github.com/zeljkofilipin/mediawiki-selenium/blob/master/LICENSE. No part of
5
+ mediawiki-selenium, including this file, may be copied, modified, propagated, or
6
+ distributed except according to the terms contained in the LICENSE file.
7
+ Copyright 2013 by the Mediawiki developers. See the CREDITS file in the
8
+ mediawiki-selenium top-level directory and at
9
+ https://github.com/zeljkofilipin/mediawiki-selenium/blob/master//CREDITS.
10
+ =end
11
+
12
+ Before('@language') do |scenario|
13
+ p '@language'
14
+ @language = true
15
+ @scenario = scenario
16
+ end
17
+
18
+ Before('@uls-in-personal-only') do |scenario|
19
+ if uls_position() != 'personal'
20
+ scenario.skip_invoke!
21
+ end
22
+ end
23
+
24
+ Before('@uls-in-sidebar-only') do |scenario|
25
+ if uls_position() != 'interlanguage'
26
+ scenario.skip_invoke!
27
+ end
28
+ end
29
+
30
+ After('@reset-preferences-after') do |scenario|
31
+ visit(ResetPreferencesPage)
32
+ on(ResetPreferencesPage).submit_element.click
33
+ end
@@ -11,6 +11,6 @@ https://github.com/zeljkofilipin/mediawiki-selenium/blob/master//CREDITS.
11
11
 
12
12
  module Mediawiki
13
13
  module Selenium
14
- VERSION = "0.1.1"
14
+ VERSION = "0.1.3"
15
15
  end
16
16
  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.1.1
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Zeljko Filipin
@@ -56,6 +56,7 @@ files:
56
56
  - lib/mediawiki/selenium.rb
57
57
  - lib/mediawiki/selenium/env.rb
58
58
  - lib/mediawiki/selenium/hooks.rb
59
+ - lib/mediawiki/selenium/hooks_universal_language_selector.rb
59
60
  - lib/mediawiki/selenium/sauce.rb
60
61
  - lib/mediawiki/selenium/version.rb
61
62
  - mediawiki-selenium.gemspec