mediawiki-selenium 0.1.15 → 0.1.16pre
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/docs/jobs.md +5 -8
- data/docs/template.md +0 -1
- data/lib/mediawiki/selenium/env.rb +3 -9
- data/lib/mediawiki/selenium/hooks.rb +1 -11
- data/lib/mediawiki/selenium/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 50ab8d323b9ef2952c061f4b978e54881f46cc4d
|
4
|
+
data.tar.gz: c79a8ac701f79ed1b4938cd19d94cf3b84be9e8b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b3ce06ea6d4fcc3ca090061847d60dcd3879808f5a7ee610ab83bb26d3def956b72fb8aa5bfb559cf94cd722d71c8015837ead2aaafa7f4f495be92263fbde96
|
7
|
+
data.tar.gz: 9ac155b4e6777c3721c51303fe6af5b232bf1cc86a7b151db4ee16ec1422ce490bd98358b95156d519e5254d0bc93ad619b06db20c143a66e6dbc5c7b5ae9b96
|
data/docs/jobs.md
CHANGED
@@ -150,21 +150,18 @@
|
|
150
150
|
|
151
151
|
|
152
152
|
# Translate
|
153
|
-
|
154
|
-
- Folder: tests/browser/
|
155
|
-
- Recipients: aaharoni@wikimedia.org cmcmahon@wikimedia.org nlaxstrom@wikimedia.org smazeland@wikimedia.org zfilipin@wikimedia.org
|
156
|
-
- Repository URL: Translate
|
153
|
+
|
157
154
|
|
158
155
|
## Translate-sandbox.translatewiki.net-linux-firefox
|
156
|
+
- Browser Label: firefox
|
159
157
|
- bundle exec: cucumber --verbose --profile ci --tags @sandbox.translatewiki.net
|
158
|
+
- Recipients: aaharoni@wikimedia.org cmcmahon@wikimedia.org nlaxstrom@wikimedia.org smazeland@wikimedia.org zfilipin@wikimedia.org
|
160
159
|
- MediaWiki URL: sandbox.translatewiki.net
|
160
|
+
- Folder: tests/browser/
|
161
|
+
- Repository URL: Translate
|
161
162
|
- MediaWiki user: Selenium
|
162
163
|
- MediaWiki password variable: MEDIAWIKI_PASSWORD_SELENIUM_SANDBOX_TRANSLATEWIKI_NET
|
163
164
|
|
164
|
-
## Translate-meta.wikimedia.org-linux-firefox
|
165
|
-
- bundle exec: cucumber --verbose --profile ci --tags @meta.wikimedia.org
|
166
|
-
- MediaWiki URL: meta.wikimedia.org
|
167
|
-
|
168
165
|
|
169
166
|
|
170
167
|
# TwnMainPage
|
data/docs/template.md
CHANGED
@@ -46,19 +46,13 @@ def local_browser(language)
|
|
46
46
|
else
|
47
47
|
if browser_label == :firefox
|
48
48
|
profile = Selenium::WebDriver::Firefox::Profile.new
|
49
|
-
profile["intl.accept_languages"] = language
|
50
|
-
Watir::Browser.new browser_label, profile: profile
|
51
49
|
elsif browser_label == :chrome
|
52
50
|
profile = Selenium::WebDriver::Chrome::Profile.new
|
53
|
-
profile["intl.accept_languages"] = language
|
54
|
-
Watir::Browser.new browser_label, profile: profile
|
55
|
-
elsif browser_label == :phantomjs
|
56
|
-
capabilities = Selenium::WebDriver::Remote::Capabilities.phantomjs
|
57
|
-
capabilities['phantomjs.page.customHeaders.Accept-Language'] = language
|
58
|
-
Watir::Browser.new browser_label, desired_capabilities: capabilities
|
59
51
|
else
|
60
|
-
raise "Changing default language is currently supported only for
|
52
|
+
raise "Changing default language is currently supported only for Firefox and Chrome!"
|
61
53
|
end
|
54
|
+
profile["intl.accept_languages"] = language
|
55
|
+
Watir::Browser.new browser_label, :profile => profile
|
62
56
|
end
|
63
57
|
end
|
64
58
|
def sauce_api(json)
|
@@ -18,17 +18,7 @@ Before("@login") do
|
|
18
18
|
end
|
19
19
|
|
20
20
|
Before do |scenario|
|
21
|
-
@
|
22
|
-
@random_string = Random.new.rand.to_s
|
23
|
-
if ENV["REUSE_BROWSER"] == "true" and $browser # CirrusSearch and VisualEditor need this
|
24
|
-
@browser = $browser
|
25
|
-
else
|
26
|
-
unless @language or @user_agent # only UniversalLanguageSelector needs @language, only MobileFrontend needs @user_agent
|
27
|
-
@browser = browser(environment, test_name(scenario), "default")
|
28
|
-
$browser = @browser # CirrusSearch and VisualEditor need this
|
29
|
-
$session_id = @browser.driver.instance_variable_get(:@bridge).session_id
|
30
|
-
end
|
31
|
-
end
|
21
|
+
p @browser = Watir::Browser.new(:phantomjs)
|
32
22
|
end
|
33
23
|
|
34
24
|
After do |scenario|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
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.16pre
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Zeljko Filipin
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-12-
|
11
|
+
date: 2013-12-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: cucumber
|
@@ -147,9 +147,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
147
147
|
version: '0'
|
148
148
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
149
149
|
requirements:
|
150
|
-
- - '
|
150
|
+
- - '>'
|
151
151
|
- !ruby/object:Gem::Version
|
152
|
-
version:
|
152
|
+
version: 1.3.1
|
153
153
|
requirements: []
|
154
154
|
rubyforge_project:
|
155
155
|
rubygems_version: 2.1.11
|