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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 63ebae0f51a849b3472d04b6f28b9934a39c93b3
4
- data.tar.gz: b5ce4eae3890c3668a9c7dcb3bbca51e3dbab2a1
3
+ metadata.gz: 50ab8d323b9ef2952c061f4b978e54881f46cc4d
4
+ data.tar.gz: c79a8ac701f79ed1b4938cd19d94cf3b84be9e8b
5
5
  SHA512:
6
- metadata.gz: 5132d54af5ceed5d8e8a89191eab05ff71469c6e6ab8999937488c6585dc0147e4bc3cbd1589fe0734ce03875bd96ba1e92eb91670e924f78aa1a9cc961f942a
7
- data.tar.gz: e8a5c746fd0ba648d8cef629d6f168773907394990358f7eecd05d0a14a89ba77394bdeb0f6eb7c659db3df41579d62f379695531a0fa52976d01a1ae0f167cc
6
+ metadata.gz: b3ce06ea6d4fcc3ca090061847d60dcd3879808f5a7ee610ab83bb26d3def956b72fb8aa5bfb559cf94cd722d71c8015837ead2aaafa7f4f495be92263fbde96
7
+ data.tar.gz: 9ac155b4e6777c3721c51303fe6af5b232bf1cc86a7b151db4ee16ec1422ce490bd98358b95156d519e5254d0bc93ad619b06db20c143a66e6dbc5c7b5ae9b96
@@ -150,21 +150,18 @@
150
150
 
151
151
 
152
152
  # Translate
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
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
@@ -107,7 +107,6 @@
107
107
  - en.m.wikipedia.org
108
108
  - en.wikipedia.beta.wmflabs.org
109
109
  - en.wikipedia.org
110
- - meta.wikimedia.org
111
110
  - sandbox.translatewiki.net
112
111
  - test2.m.wikipedia.org
113
112
  - test2.wikipedia.org
@@ -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 Chrome, Firefox and PhantomJS!"
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
- @config = config
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|
@@ -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.15"
14
+ VERSION = "0.1.16pre"
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.15
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-13 00:00:00.000000000 Z
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: '0'
152
+ version: 1.3.1
153
153
  requirements: []
154
154
  rubyforge_project:
155
155
  rubygems_version: 2.1.11