Sha256: 05eea131c8056b859dc79def09771a097926ab3d0abe4b98f8d49bed54e6d168

Contents?: true

Size: 521 Bytes

Versions: 47

Compression:

Stored size: 521 Bytes

Contents

# frozen_string_literal: true

require 'spec_helper'

RSpec.describe 'Store credits', type: :feature do
  stub_authorization!

  let(:order) { FactoryBot.create(:completed_order_with_totals) }
  let(:payment) do
    FactoryBot.create(
      :store_credit_payment,
      order: order,
      amount: 20
    )
  end

  it "viewing a store credit payment" do
    visit spree.admin_order_payment_path(order, payment)

    expect(page).to have_content "Store Credit"
    expect(page).to have_content "Amount: $20.00"
  end
end

Version data entries

47 entries across 47 versions & 2 rubygems

Version Path
solidus_backend-2.10.5 spec/features/admin/payments/store_credits_spec.rb
solidus_backend-2.10.3 spec/features/admin/payments/store_credits_spec.rb
solidus_backend-2.10.2 spec/features/admin/payments/store_credits_spec.rb
solidus_backend-2.9.6 spec/features/admin/payments/store_credits_spec.rb
solidus_backend-2.8.6 spec/features/admin/payments/store_credits_spec.rb
solidus_backend-2.10.1 spec/features/admin/payments/store_credits_spec.rb
solidus_backend-2.9.5 spec/features/admin/payments/store_credits_spec.rb
solidus_backend-2.10.0 spec/features/admin/payments/store_credits_spec.rb
solidus_backend-2.9.4 spec/features/admin/payments/store_credits_spec.rb
solidus_backend-2.6.6 spec/features/admin/payments/store_credits_spec.rb
solidus_backend-2.7.4 spec/features/admin/payments/store_credits_spec.rb
solidus_backend-2.8.5 spec/features/admin/payments/store_credits_spec.rb
solidus_backend-2.9.3 spec/features/admin/payments/store_credits_spec.rb
solidus_backend-2.9.2 spec/features/admin/payments/store_credits_spec.rb
solidus_backend-2.10.0.beta1 spec/features/admin/payments/store_credits_spec.rb
solidus_backend-2.7.3 spec/features/admin/payments/store_credits_spec.rb
solidus_backend-2.6.5 spec/features/admin/payments/store_credits_spec.rb
solidus_backend-2.9.1 spec/features/admin/payments/store_credits_spec.rb
solidus_backend-2.9.0 spec/features/admin/payments/store_credits_spec.rb
solidus_backend-2.9.0.rc.1 spec/features/admin/payments/store_credits_spec.rb