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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1eca8418181b944e7634f86ef113384fc6acb12f
|
4
|
+
data.tar.gz: ce07d480d8b3028a2b833f82bee1bc5997a95c68
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 39647031692a40d5872ce9d5ca6faefff9b6082ae46544b80120c742be78f3653ae3f4249d3e4e7e931bc99c49df36c5c09c1554a7c4205d31eff9aa3af99e2e
|
7
|
+
data.tar.gz: a52f56e75c0647a0b63e82d2588d45bf69c958ec474284ceddf7a23a65503c2a4cecb4f4e154032e79dabd4161083a558b7e9db40017bc740bb64ee2a34ce3a4
|
data/lib/mediawiki/selenium.rb
CHANGED
@@ -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
|
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.
|
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
|