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

Version Path
solidus_backend-2.5.2 spec/features/admin/orders/return_authorizations_spec.rb
solidus_backend-2.5.1 spec/features/admin/orders/return_authorizations_spec.rb
solidus_backend-2.5.0 spec/features/admin/orders/return_authorizations_spec.rb
solidus_backend-2.5.0.rc1 spec/features/admin/orders/return_authorizations_spec.rb
solidus_backend-2.5.0.beta2 spec/features/admin/orders/return_authorizations_spec.rb
solidus_backend-2.5.0.beta1 spec/features/admin/orders/return_authorizations_spec.rb
solidus_backend-2.4.2 spec/features/admin/orders/return_authorizations_spec.rb
solidus_backend-2.4.1 spec/features/admin/orders/return_authorizations_spec.rb
solidus_backend-2.3.1 spec/features/admin/orders/return_authorizations_spec.rb
solidus_backend-2.2.2 spec/features/admin/orders/return_authorizations_spec.rb
solidus_backend-2.1.1 spec/features/admin/orders/return_authorizations_spec.rb
solidus_backend-2.0.3 spec/features/admin/orders/return_authorizations_spec.rb
solidus_backend-1.4.2 spec/features/admin/orders/return_authorizations_spec.rb
solidus_backend-2.4.0 spec/features/admin/orders/return_authorizations_spec.rb
solidus_backend-2.4.0.rc1 spec/features/admin/orders/return_authorizations_spec.rb
solidus_backend-2.4.0.beta1 spec/features/admin/orders/return_authorizations_spec.rb
solidus_backend-2.3.0 spec/features/admin/orders/return_authorizations_spec.rb
solidus_backend-2.3.0.rc3 spec/features/admin/orders/return_authorizations_spec.rb
solidus_backend-2.3.0.rc2 spec/features/admin/orders/return_authorizations_spec.rb
solidus_backend-2.3.0.rc1 spec/features/admin/orders/return_authorizations_spec.rb