Sha256: ff10cccf1cdfa73ee6700141cd8c67aeb4a5d0576aced562db3c1607774649f9
Contents?: true
Size: 900 Bytes
Versions: 42
Compression:
Stored size: 900 Bytes
Contents
# frozen_string_literal: true require 'spec_helper' describe "ReturnAuthorizations", type: :feature do include OrderFeatureHelper stub_authorization! let!(:order) { create(:shipped_order) } let!(:return_authorization) { create(:return_authorization, order: order) } it "can visit the return authorizations list page" do visit spree.admin_order_return_authorizations_path(order) end describe "edit" do it "can visit the return authorizations edit page" do visit spree.edit_admin_order_return_authorization_path(order, return_authorization) end it "return authorizations edit page has a data hook for extensions to add content above, below or within the RA form" do visit spree.edit_admin_order_return_authorization_path(order, return_authorization) expect(page).to have_selector("[data-hook=return-authorization-form-wrapper]") end end end
Version data entries
42 entries across 42 versions & 2 rubygems