Skip to content

Commit

Permalink
more explicit message about paid orders only
Browse files Browse the repository at this point in the history
  • Loading branch information
andrzejkrzywda committed Sep 6, 2023
1 parent a76e3d1 commit 438503f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def orders_table(client, client_orders)
end
tr class: "border-t font-bold" do
td colspan: 2, class: "py-2" do
para "Total orders summary"
para "Total paid orders"
end
td class: "py-2 text-right border-t" do
number_to_currency(client.paid_orders_summary)
Expand Down
4 changes: 2 additions & 2 deletions rails_application/test/integration/client_orders_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def test_paid_orders_summary

login(customer_id)
visit_client_orders
assert_select "Total orders summary", false
assert_select "Total paid orders", false

order_and_pay(customer_id, SecureRandom.uuid, product_1_id, product_2_id)
visit_client_orders
Expand Down Expand Up @@ -141,7 +141,7 @@ def order_and_pay(customer_id, order_id, *product_ids)

def assert_orders_summary(summary)
assert_select 'tr' do
assert_select 'td:nth-child(1)', "Total orders summary"
assert_select 'td:nth-child(1)', "Total paid orders"
assert_select 'td:nth-child(2)', summary
end
end
Expand Down

0 comments on commit 438503f

Please sign in to comment.