mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-26 01:33:22 +00:00
Merge pull request #9577 from filipefurtad0/invoice-spec
Moves invoice_spec.rb into /system; sets :rack_test as webdriver
This commit is contained in:
1
.github/workflows/build.yml
vendored
1
.github/workflows/build.yml
vendored
@@ -36,7 +36,6 @@ jobs:
|
||||
specs:
|
||||
- "spec/controllers"
|
||||
- "spec/models"
|
||||
- "spec/features/admin/[a-o0-9]*_spec.rb"
|
||||
- "spec/lib"
|
||||
- "spec/migrations"
|
||||
- "spec/serializers"
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
require "spec_helper"
|
||||
require "system_helper"
|
||||
|
||||
describe '
|
||||
As an administrator
|
||||
I want to print a invoice as PDF
|
||||
', js: false do
|
||||
', type: :feature do
|
||||
include WebHelper
|
||||
include AuthenticationHelper
|
||||
|
||||
@@ -27,9 +27,14 @@ describe '
|
||||
end
|
||||
|
||||
before do
|
||||
Capybara.current_driver = :rack_test
|
||||
stub_request(:get, ->(uri) { uri.to_s.include? "/css/mail" })
|
||||
end
|
||||
|
||||
after do
|
||||
Capybara.use_default_driver
|
||||
end
|
||||
|
||||
describe "that contains right Payment Description at Checkout information" do
|
||||
let!(:payment_method1) do
|
||||
create(:stripe_sca_payment_method, distributors: [distributor], description: "description1")
|
||||
Reference in New Issue
Block a user