Sha256: cbd692a5accb9f83611b53d2ecf52bc51f1ce7a2ea279988a9a8deb851d1d85e

Contents?: true

Size: 368 Bytes

Versions: 6

Compression:

Stored size: 368 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: :feature
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
solidus_paypal_commerce_platform-0.3.2 spec/support/paypal_sdk_script_tag_helper.rb
solidus_paypal_commerce_platform-0.3.1 spec/support/paypal_sdk_script_tag_helper.rb
solidus_paypal_commerce_platform-0.3.0 spec/support/paypal_sdk_script_tag_helper.rb
solidus_paypal_commerce_platform-0.2.2 spec/support/paypal_sdk_script_tag_helper.rb
solidus_paypal_commerce_platform-0.2.1 spec/support/paypal_sdk_script_tag_helper.rb
solidus_paypal_commerce_platform-0.2.0 spec/support/paypal_sdk_script_tag_helper.rb