Sha256: 0fb4f5c4663a7c1aaeef593900ea9c2cadfe0297574e81c64ee92ee30586a9ee

Contents?: true

Size: 556 Bytes

Versions: 4

Compression:

Stored size: 556 Bytes

Contents

require 'test_helper'

module Workarea
  module Storefront
    class LegacyOrderLookupSystemTest < Workarea::SystemTest
      def test_looking_up_legacy_order
        order = create_legacy_order(id: 'LO1')

        visit storefront.check_orders_path

        fill_in :order_id, with: 'LO1'
        fill_in :postal_code, with: '19106'

        click_button t('workarea.storefront.orders.lookup_order')

        assert_current_path(storefront.order_path('LO1'))
        assert(page.has_content?(order.billing_address.first_name))
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
workarea-legacy_orders-2.0.3 test/system/workarea/storefront/legacy_order_lookup_system_test.rb
workarea-legacy_orders-2.0.2 test/system/workarea/storefront/legacy_order_lookup_system_test.rb
workarea-legacy_orders-2.0.1 test/system/workarea/storefront/legacy_order_lookup_system_test.rb
workarea-legacy_orders-2.0.0 test/system/workarea/storefront/legacy_order_lookup_system_test.rb