Sha256: 8e0e254136d26ccfc84a0db8b72ac9b2ef8e409458e10d47decea2cfddeb069e

Contents?: true

Size: 596 Bytes

Versions: 1

Compression:

Stored size: 596 Bytes

Contents

require 'test_helper'

module Workarea
  module Storefront
    class AffirmLoggedInCheckoutSystemTest < Workarea::SystemTest
      include Storefront::SystemTest

      setup :set_affirm
      setup :setup_checkout_specs
      setup :add_user_data
      setup :start_user_checkout

      def set_affirm
        Workarea.config.affirm_public_key = 'x'
        Workarea.config.affirm_private_key = 'y'
      end

      def test_affirm_option_in_checkout
        choose 'payment_affirm'
        assert(page.has_content?(I18n.t('workarea.storefront.affirm.on_continue')))
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
workarea-affirm-1.0.0 test/system/workarea/storefront/affirm_logged_in_checkout_system_test.rb