Sha256: c9d14147ad73eb7a8086a4de8342ac79a4aceec6df70f3135318ce7b6e8e51ec
Contents?: true
Size: 609 Bytes
Versions: 2
Compression:
Stored size: 609 Bytes
Contents
require 'test_helper' module Workarea module Admin class JumpToIntegrationTest < Workarea::IntegrationTest include Admin::IntegrationTest def test_finding_orders_by_global_e_id order = create_global_e_completed_checkout get admin.jump_to_path q: order.global_e_id results = JSON.parse(response.body)['results'] assert_equal(1, results.length) assert_match(/#{order.id}/, results.first['label']) assert_equal('Orders', results.first['type']) assert_equal(admin.order_path(order.id), results.first['url']) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
workarea-global_e-1.3.0 | test/integration/workarea/admin/global_e_jump_to_integration_test.rb |
workarea-global_e-1.2.1 | test/integration/workarea/admin/global_e_jump_to_integration_test.rb |