fix: Misleading 'Tax Paid' label — value includes unpaid tax due (#374)

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 <noreply@anthropic.com>
This commit is contained in:
openhands 2026-03-06 11:51:45 +00:00
parent 98dac2f67e
commit 18a2d4138e
2 changed files with 3 additions and 3 deletions

View file

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