Sha256: 8a6f473909cfb5bb17b9dbb1d472484c776df9fdb7e4155890f1e1308dea9c81

Contents?: true

Size: 367 Bytes

Versions: 7

Compression:

Stored size: 367 Bytes

Contents

module PaypalSdkScriptTagHelper
  def js_sdk_script_query
    URI(page.find('script[src*="sdk/js?"]', visible: false)[:src]).query.split('&')
  end

  def js_sdk_script_partner_id
    page.find('script[src*="sdk/js?"]', visible: false)['data-partner-attribution-id']
  end
end

RSpec.configure do |config|
  config.include PaypalSdkScriptTagHelper, type: :system
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
solidus_paypal_commerce_platform-1.0.3 spec/support/solidus_paypal_commerce_platform/paypal_sdk_script_tag_helper.rb
solidus_paypal_commerce_platform-1.0.2 spec/support/solidus_paypal_commerce_platform/paypal_sdk_script_tag_helper.rb
solidus_paypal_commerce_platform-1.0.1 spec/support/solidus_paypal_commerce_platform/paypal_sdk_script_tag_helper.rb
solidus_paypal_commerce_platform-1.0.0 spec/support/solidus_paypal_commerce_platform/paypal_sdk_script_tag_helper.rb
solidus_paypal_commerce_platform-1.0.0.beta3 spec/support/solidus_paypal_commerce_platform/paypal_sdk_script_tag_helper.rb
solidus_paypal_commerce_platform-1.0.0.beta2 spec/support/solidus_paypal_commerce_platform/paypal_sdk_script_tag_helper.rb
solidus_paypal_commerce_platform-1.0.0.beta1 spec/support/solidus_paypal_commerce_platform/paypal_sdk_script_tag_helper.rb