diff --git a/rails_application/app/read_models/client_orders/configuration.rb b/rails_application/app/read_models/client_orders/configuration.rb index a13d2f298..0153cee29 100644 --- a/rails_application/app/read_models/client_orders/configuration.rb +++ b/rails_application/app/read_models/client_orders/configuration.rb @@ -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) diff --git a/rails_application/test/integration/client_orders_test.rb b/rails_application/test/integration/client_orders_test.rb index b6399c58c..88a807ad7 100644 --- a/rails_application/test/integration/client_orders_test.rb +++ b/rails_application/test/integration/client_orders_test.rb @@ -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 @@ -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