Sha256: ad84ea884c96029b0cd47a98f9c3feec7fb368152a7468c9fa03026c5841e8b8
Contents?: true
Size: 869 Bytes
Versions: 37
Compression:
Stored size: 869 Bytes
Contents
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
37 entries across 37 versions & 1 rubygems