mediawiki-selenium 0.1.15pre → 0.1.15
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 +8 -5
- data/docs/template.md +1 -0
- data/lib/mediawiki/selenium/env.rb +11 -5
- 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: 63ebae0f51a849b3472d04b6f28b9934a39c93b3
|
4
|
+
data.tar.gz: b5ce4eae3890c3668a9c7dcb3bbca51e3dbab2a1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5132d54af5ceed5d8e8a89191eab05ff71469c6e6ab8999937488c6585dc0147e4bc3cbd1589fe0734ce03875bd96ba1e92eb91670e924f78aa1a9cc961f942a
|
7
|
+
data.tar.gz: e8a5c746fd0ba648d8cef629d6f168773907394990358f7eecd05d0a14a89ba77394bdeb0f6eb7c659db3df41579d62f379695531a0fa52976d01a1ae0f167cc
|
data/docs/jobs.md
CHANGED
@@ -150,18 +150,21 @@
|
|
150
150
|
|
151
151
|
|
152
152
|
# Translate
|
153
|
-
|
153
|
+
- Browser Label: firefox
|
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
|
154
157
|
|
155
158
|
## Translate-sandbox.translatewiki.net-linux-firefox
|
156
|
-
- Browser Label: firefox
|
157
159
|
- 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
|
159
160
|
- MediaWiki URL: sandbox.translatewiki.net
|
160
|
-
- Folder: tests/browser/
|
161
|
-
- Repository URL: Translate
|
162
161
|
- MediaWiki user: Selenium
|
163
162
|
- MediaWiki password variable: MEDIAWIKI_PASSWORD_SELENIUM_SANDBOX_TRANSLATEWIKI_NET
|
164
163
|
|
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
|
+
|
165
168
|
|
166
169
|
|
167
170
|
# TwnMainPage
|
data/docs/template.md
CHANGED
@@ -20,7 +20,6 @@ require "yaml"
|
|
20
20
|
World(PageObject::PageFactory)
|
21
21
|
|
22
22
|
def browser(environment, test_name, language)
|
23
|
-
p environment
|
24
23
|
if environment == :saucelabs
|
25
24
|
sauce_browser(test_name, language)
|
26
25
|
else
|
@@ -28,7 +27,8 @@ def browser(environment, test_name, language)
|
|
28
27
|
end
|
29
28
|
end
|
30
29
|
def environment
|
31
|
-
if ENV["BROWSER_LABEL"] and ENV["BROWSER_LABEL"] != "phantomjs" and
|
30
|
+
if ENV["BROWSER_LABEL"] and ENV["BROWSER_LABEL"] != "phantomjs" and
|
31
|
+
ENV["SAUCE_ONDEMAND_USERNAME"] and ENV["SAUCE_ONDEMAND_ACCESS_KEY"]
|
32
32
|
:saucelabs
|
33
33
|
else
|
34
34
|
:local
|
@@ -46,13 +46,19 @@ 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
|
49
51
|
elsif browser_label == :chrome
|
50
52
|
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
|
51
59
|
else
|
52
|
-
raise "Changing default language is currently supported only for Firefox and
|
60
|
+
raise "Changing default language is currently supported only for Chrome, Firefox and PhantomJS!"
|
53
61
|
end
|
54
|
-
profile["intl.accept_languages"] = language
|
55
|
-
Watir::Browser.new browser_label, :profile => profile
|
56
62
|
end
|
57
63
|
end
|
58
64
|
def sauce_api(json)
|
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.15
|
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-13 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: '0'
|
153
153
|
requirements: []
|
154
154
|
rubyforge_project:
|
155
155
|
rubygems_version: 2.1.11
|