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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2df4fbd91ac593459ddaa198ead19637a3ae70c9
4
- data.tar.gz: 999f178a699f2a6db555c623060014ce13f1fe21
3
+ metadata.gz: 63ebae0f51a849b3472d04b6f28b9934a39c93b3
4
+ data.tar.gz: b5ce4eae3890c3668a9c7dcb3bbca51e3dbab2a1
5
5
  SHA512:
6
- metadata.gz: a934102ae796628b756f72cdbc23794b51eaa4728724c07b60698c707a918992c2405eb9eddba766884a0b2de263242a5efd81bf4576443ea72cc408a53ac826
7
- data.tar.gz: df46d7598bbb65d2992afab6de80c234045c35036e7cf239d618994a692aab88c69109c498341daa15c65e197a099c5f72952fe298d2aa470620657dc75e1509
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
@@ -107,6 +107,7 @@
107
107
  - en.m.wikipedia.org
108
108
  - en.wikipedia.beta.wmflabs.org
109
109
  - en.wikipedia.org
110
+ - meta.wikimedia.org
110
111
  - sandbox.translatewiki.net
111
112
  - test2.m.wikipedia.org
112
113
  - test2.wikipedia.org
@@ -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 ENV["SAUCE_ONDEMAND_USERNAME"] and ENV["SAUCE_ONDEMAND_ACCESS_KEY"]
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 Chrome!"
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)
@@ -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.15pre"
14
+ VERSION = "0.1.15"
15
15
  end
16
16
  end
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.15pre
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-10 00:00:00.000000000 Z
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: 1.3.1
152
+ version: '0'
153
153
  requirements: []
154
154
  rubyforge_project:
155
155
  rubygems_version: 2.1.11