Sha256: bf5c7863eb7346efec0ba0a262505a9e89fbd7aace84b9d4dd57134ab363ecd0

Contents?: true

Size: 663 Bytes

Versions: 28

Compression:

Stored size: 663 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_equal('admin', order.source)
        assert_equal(order.checkout_by_id, admin_user.id.to_s)
      end
    end
  end
end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
workarea-storefront-3.5.27 test/integration/workarea/storefront/guest_browsing_integration_test.rb
workarea-storefront-3.5.26 test/integration/workarea/storefront/guest_browsing_integration_test.rb
workarea-storefront-3.5.25 test/integration/workarea/storefront/guest_browsing_integration_test.rb
workarea-storefront-3.5.23 test/integration/workarea/storefront/guest_browsing_integration_test.rb
workarea-storefront-3.5.22 test/integration/workarea/storefront/guest_browsing_integration_test.rb
workarea-storefront-3.5.21 test/integration/workarea/storefront/guest_browsing_integration_test.rb
workarea-storefront-3.5.20 test/integration/workarea/storefront/guest_browsing_integration_test.rb
workarea-storefront-3.5.19 test/integration/workarea/storefront/guest_browsing_integration_test.rb
workarea-storefront-3.5.18 test/integration/workarea/storefront/guest_browsing_integration_test.rb
workarea-storefront-3.5.17 test/integration/workarea/storefront/guest_browsing_integration_test.rb
workarea-storefront-3.5.16 test/integration/workarea/storefront/guest_browsing_integration_test.rb
workarea-storefront-3.5.15 test/integration/workarea/storefront/guest_browsing_integration_test.rb
workarea-storefront-3.5.14 test/integration/workarea/storefront/guest_browsing_integration_test.rb
workarea-storefront-3.5.13 test/integration/workarea/storefront/guest_browsing_integration_test.rb
workarea-storefront-3.5.12 test/integration/workarea/storefront/guest_browsing_integration_test.rb
workarea-storefront-3.5.11 test/integration/workarea/storefront/guest_browsing_integration_test.rb
workarea-storefront-3.5.10 test/integration/workarea/storefront/guest_browsing_integration_test.rb
workarea-storefront-3.5.9 test/integration/workarea/storefront/guest_browsing_integration_test.rb
workarea-storefront-3.5.8 test/integration/workarea/storefront/guest_browsing_integration_test.rb
workarea-storefront-3.5.7 test/integration/workarea/storefront/guest_browsing_integration_test.rb