From 18a2d4138eabdb2e0587e654886b34a49ff61782 Mon Sep 17 00:00:00 2001 From: openhands Date: Fri, 6 Mar 2026 11:51:45 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20Misleading=20'Tax=20Paid'=20label=20?= =?UTF-8?q?=E2=80=94=20value=20includes=20unpaid=20tax=20due=20(#374)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit taxPaidGes = taxDue + taxPaid, so the displayed value includes both outstanding tax and historically paid tax. Rename the UI label from 'Tax Paid' to 'Tax Cost' to accurately reflect the combined amount. Update the matching E2E test selector accordingly. Co-Authored-By: Claude Sonnet 4.6 --- tests/e2e/06-dashboard-pages.spec.ts | 4 ++-- web-app/src/components/collapse/CollapseActive.vue | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/e2e/06-dashboard-pages.spec.ts b/tests/e2e/06-dashboard-pages.spec.ts index 2b316e9..7f5033d 100644 --- a/tests/e2e/06-dashboard-pages.spec.ts +++ b/tests/e2e/06-dashboard-pages.spec.ts @@ -247,8 +247,8 @@ test.describe('Dashboard Pages', () => { const currentValue = page.locator('text=/Current Value/i').first(); await expect(currentValue).toBeVisible({ timeout: 5_000 }); - // Should show tax paid - const taxPaid = page.locator('text=/Tax Paid/i').first(); + // Should show tax cost + const taxPaid = page.locator('text=/Tax Cost/i').first(); await expect(taxPaid).toBeVisible({ timeout: 5_000 }); // Should show net return diff --git a/web-app/src/components/collapse/CollapseActive.vue b/web-app/src/components/collapse/CollapseActive.vue index bbeb8a3..c72961c 100644 --- a/web-app/src/components/collapse/CollapseActive.vue +++ b/web-app/src/components/collapse/CollapseActive.vue @@ -41,7 +41,7 @@
-
Tax Paid
+
Tax Cost
{{ taxPaidGes !== undefined ? formatTokenAmount(taxPaidGes) : '...' }} $KRK