Sha256: ae7bb0855916e766bd9a62ea9761445899cc7a750a17b1553855ebdaaee0a605

Contents?: true

Size: 651 Bytes

Versions: 34

Compression:

Stored size: 651 Bytes

Contents

require 'test_helper'

module Workarea
  module Storefront
    class GuestBrowsingIntegrationTest < Workarea::IntegrationTest
      include Storefront::IntegrationTest

      def test_checkout_with_guest_browsing
        admin_user = create_user(password: 'W3bl1nc!', super_admin: true)

        post storefront.login_path,
          params: { email: admin_user.email, password: 'W3bl1nc!' }

        post admin.guest_browsing_path

        complete_checkout
        order = Order.placed.first
        assert_nil(order.user_id)
        assert('admin', order.source)
        assert(order.checkout_by_id, admin_user.id.to_s)
      end
    end
  end
end

Version data entries

34 entries across 34 versions & 1 rubygems

Version Path
workarea-storefront-3.4.45 test/integration/workarea/storefront/guest_browsing_integration_test.rb
workarea-storefront-3.4.44 test/integration/workarea/storefront/guest_browsing_integration_test.rb
workarea-storefront-3.4.43 test/integration/workarea/storefront/guest_browsing_integration_test.rb
workarea-storefront-3.4.42 test/integration/workarea/storefront/guest_browsing_integration_test.rb
workarea-storefront-3.4.41 test/integration/workarea/storefront/guest_browsing_integration_test.rb
workarea-storefront-3.4.40 test/integration/workarea/storefront/guest_browsing_integration_test.rb
workarea-storefront-3.4.39 test/integration/workarea/storefront/guest_browsing_integration_test.rb
workarea-storefront-3.4.38 test/integration/workarea/storefront/guest_browsing_integration_test.rb
workarea-storefront-3.4.37 test/integration/workarea/storefront/guest_browsing_integration_test.rb
workarea-storefront-3.4.36 test/integration/workarea/storefront/guest_browsing_integration_test.rb
workarea-storefront-3.4.35 test/integration/workarea/storefront/guest_browsing_integration_test.rb
workarea-storefront-3.4.34 test/integration/workarea/storefront/guest_browsing_integration_test.rb
workarea-storefront-3.4.33 test/integration/workarea/storefront/guest_browsing_integration_test.rb
workarea-storefront-3.4.32 test/integration/workarea/storefront/guest_browsing_integration_test.rb
workarea-storefront-3.4.31 test/integration/workarea/storefront/guest_browsing_integration_test.rb
workarea-storefront-3.4.30 test/integration/workarea/storefront/guest_browsing_integration_test.rb
workarea-storefront-3.4.29 test/integration/workarea/storefront/guest_browsing_integration_test.rb
workarea-storefront-3.4.28 test/integration/workarea/storefront/guest_browsing_integration_test.rb
workarea-storefront-3.4.27 test/integration/workarea/storefront/guest_browsing_integration_test.rb
workarea-storefront-3.4.26 test/integration/workarea/storefront/guest_browsing_integration_test.rb