diff --git a/spec/system/admin/order_spec.rb b/spec/system/admin/order_spec.rb index 1d586e3e2de..5776adb41aa 100644 --- a/spec/system/admin/order_spec.rb +++ b/spec/system/admin/order_spec.rb @@ -1078,10 +1078,11 @@ def serching_for_customers ].join(" ").upcase } + let(:invoice_number){ "#{order.distributor_id}-1" } let(:table_contents) { [ Invoice.first.created_at.strftime('%B %d, %Y').to_s, - "1", + invoice_number, "0.0", "Active", "Download" diff --git a/spec/system/admin/orders/invoices_spec.rb b/spec/system/admin/orders/invoices_spec.rb index da7086ebf27..5527eac11a2 100644 --- a/spec/system/admin/orders/invoices_spec.rb +++ b/spec/system/admin/orders/invoices_spec.rb @@ -170,10 +170,13 @@ describe 'listing invoices' do let(:date){ Time.current.to_date } + let(:first_invoice){ "#{distributor.id}-1" } + let(:second_invoice){ "#{distributor.id}-2" } + let(:row1){ [ I18n.l(date, format: :long), - "2", + second_invoice, order.total, "Active", "Download" @@ -183,7 +186,7 @@ let(:row2){ [ I18n.l(date, format: :long), - "1", + first_invoice, order.total, "Cancelled", "Download"