Merge pull request #9577 from filipefurtad0/invoice-spec

Moves invoice_spec.rb into /system; sets :rack_test as webdriver
This commit is contained in:
Maikel
2022-08-29 11:34:20 +10:00
committed by GitHub
2 changed files with 7 additions and 3 deletions

View File

@@ -36,7 +36,6 @@ jobs:
specs:
- "spec/controllers"
- "spec/models"
- "spec/features/admin/[a-o0-9]*_spec.rb"
- "spec/lib"
- "spec/migrations"
- "spec/serializers"

View File

@@ -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")