The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
test(desktop): preserve currency whitespace in billing queries
brooklyn!09fbc27a4a93
diff --git a/apps/desktop/src/app/settings/billing/index.test.tsx b/apps/desktop/src/app/settings/billing/index.test.tsxindex 41affa3a16b..70535e38d8d 100644--- a/apps/desktop/src/app/settings/billing/index.test.tsx+++ b/apps/desktop/src/app/settings/billing/index.test.tsx@@ -150,7 +150,7 @@ describe('BillingSettings', () => {target: { value: '7.50' }})- expect(screen.getByText(`Threshold: minimum is ${formatMoney(10)}.`)).toBeTruthy()+ expect(screen.getByText(`Threshold: minimum is ${formatMoney(10)}.`, { collapseWhitespace: false })).toBeTruthy()expect(screen.getByRole('button', { name: 'Save' }).hasAttribute('disabled')).toBe(true)fireEvent.click(screen.getByRole('button', { name: 'Save' }))@@ -201,7 +201,7 @@ describe('BillingSettings', () => {fireEvent.click(await screen.findByRole('button', { name: 'Manage' }))expect(screen.getByRole('spinbutton', { name: 'Auto-refill threshold' })).toBeTruthy()- expect(screen.queryByText(`Threshold: minimum is ${formatMoney(10)}.`)).toBeNull()+ expect(screen.queryByText(`Threshold: minimum is ${formatMoney(10)}.`, { collapseWhitespace: false })).toBeNull()// Save is disabled because the prefilled config is invalid — but no error yet.expect(screen.getByRole('button', { name: 'Save' }).hasAttribute('disabled')).toBe(true)})@@ -541,7 +541,9 @@ describe('BillingSettings', () => {ok: true})- await waitFor(() => expect(screen.getByText(`${formatMoney(25)} added. Balance is refreshing.`)).toBeTruthy())+ await waitFor(() =>+ expect(screen.getByText(`${formatMoney(25)} added. Balance is refreshing.`, { collapseWhitespace: false })).toBeTruthy()+ )})it('renders logged-out as a connect card without normal account rows', async () => {