mediawiki_selenium 1.6.4 → 1.6.5

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: ccc71f5c503fa3584924d25edd822abfeeb12f3b
4
- data.tar.gz: 31f7478f1fc2748f507c63430a6f2674828726f2
3
+ metadata.gz: b586d9776790289bc4652f8a959ba1571359a9ee
4
+ data.tar.gz: 2a94ab474b58420757a688553be1988ef0bbc77a
5
5
  SHA512:
6
- metadata.gz: 7569d7793812924083b35cf74c0dc53c96e620ecd6ee376b1f82049d36cbd4e0acbea561c64161fd1f460d99e861bcedabd9575e1fa185c4a755075b15548db7
7
- data.tar.gz: ba8f9c33ed6b3e0a4a25be14dea34ea881fd0353df65096fd80881ccd88b6b89787de9a1a7c65d38d0e3d95a40c9c3fe99efcd440188271db8793a073da4a702
6
+ metadata.gz: 4665b7a2048bbfadc846778c7d88df7a6ec2c436856d31198f699305af6cb7d07d073a0a7a693de285c7f9a98598bddd356657700a6bad7c8677a9474be56299
7
+ data.tar.gz: 5fad19dfbfdb73de35fe183c1cde46ee940090cdf6c9372d80eb282ba21127a9e886566c3bd6b3177fb347e3b927f9da829d99c1d04aadce6d8744f1464c7beb
@@ -1,5 +1,9 @@
1
1
  ## Release notes
2
2
 
3
+ ### 1.6.5 2016-01-27
4
+
5
+ * Fixed `NoMethodError` in `EmbedBrowserSession` helper
6
+
3
7
  ### 1.6.4 2016-01-27
4
8
 
5
9
  * Log SauceLabs session URLs via Cucumber logger embeds
@@ -0,0 +1,14 @@
1
+ Feature: Embedded remote browser session ID for Cucumber tests
2
+
3
+ Sessions where an ID is assigned, such as SauceLabs remote sessions, should
4
+ have the ID saved (embedded) by the Cucumber logger. This test doesn't
5
+ actually measure that the session ID was correctly embedded but simply
6
+ exercises the helper to make sure it doesn't blow up when the `#session_id`
7
+ method doesn't exist.
8
+
9
+ Scenario: The helper doesn't blow up
10
+ Given I have configured my environment from `ENV`
11
+ And I am using a local browser
12
+ And I am using the embed browser session helper
13
+ When I start interacting with the browser
14
+ Then the browser is open
@@ -0,0 +1,3 @@
1
+ Given(/^I am using the embed browser session helper$/) do
2
+ @env.extend(MediawikiSelenium::EmbedBrowserSession)
3
+ end
@@ -11,7 +11,9 @@ module MediawikiSelenium
11
11
  #
12
12
  def browser
13
13
  super.tap do |b|
14
- embed(b.driver.session_id, 'application/vnd.webdriver-session-id')
14
+ if b.driver.respond_to?(:session_id)
15
+ embed(b.driver.session_id, 'application/vnd.webdriver-session-id')
16
+ end
15
17
  end
16
18
  end
17
19
  end
@@ -1,3 +1,3 @@
1
1
  module MediawikiSelenium
2
- VERSION = '1.6.4'
2
+ VERSION = '1.6.5'
3
3
  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: 1.6.4
4
+ version: 1.6.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris McMahon
@@ -348,6 +348,7 @@ files:
348
348
  - bin/mediawiki-selenium-init
349
349
  - features/api.feature
350
350
  - features/basic_usage.feature
351
+ - features/embed_browser_session.feature
351
352
  - features/login_helper.feature
352
353
  - features/recording.feature
353
354
  - features/rspec.feature
@@ -356,6 +357,7 @@ files:
356
357
  - features/screenshots.feature
357
358
  - features/step_definitions/api_helper_steps.rb
358
359
  - features/step_definitions/browser_steps.rb
360
+ - features/step_definitions/embed_browser_session_steps.rb
359
361
  - features/step_definitions/environment_steps.rb
360
362
  - features/step_definitions/login_helper_steps.rb
361
363
  - features/step_definitions/rspec_steps.rb
@@ -443,7 +445,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
443
445
  version: '0'
444
446
  requirements: []
445
447
  rubyforge_project:
446
- rubygems_version: 2.4.5.1
448
+ rubygems_version: 2.4.3
447
449
  signing_key:
448
450
  specification_version: 4
449
451
  summary: An easy way to run MediaWiki Selenium tests.