The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
test(e2e): update billing handoff assertions to new copy
Steven Enamakeld4c165e0d718
diff --git a/app/test/e2e/specs/crypto-payment-flow.spec.ts b/app/test/e2e/specs/crypto-payment-flow.spec.tsindex 01885267fd..0e77bf0db5 100644--- a/app/test/e2e/specs/crypto-payment-flow.spec.ts+++ b/app/test/e2e/specs/crypto-payment-flow.spec.ts@@ -12,7 +12,7 @@*/import { waitForApp } from '../helpers/app-helpers';import { textExists, waitForText } from '../helpers/element-helpers';-import { navigateToBilling, navigateToHome, performFullLogin } from '../helpers/shared-flows';+import { navigateToHome, navigateViaHash, performFullLogin } from '../helpers/shared-flows';import { clearRequestLog, startMockServer, stopMockServer } from '../mock-server';const LOG_PREFIX = '[CryptoPayment]';@@ -35,21 +35,21 @@ describe('Crypto Payment Flow', () => {it('6.1 — account panel shows billing dashboard handoff', async function () {this.timeout(60_000);await navigateViaHash('/settings/account');- await waitForText('Open billing dashboard', 20_000);+ await waitForText('Open dashboard', 20_000);console.log(`${LOG_PREFIX} 6.1 — account billing handoff loaded`);});it('6.2 — "Open billing dashboard" button is present', async () => {await navigateViaHash('/settings/account');- const hasButton = await textExists('Open billing dashboard');+ const hasButton = await textExists('Open dashboard');expect(hasButton).toBe(true);console.log(`${LOG_PREFIX} 6.2 — "Open billing dashboard" button present`);});it('6.3 — the handoff is an explicit user action', async () => {await navigateViaHash('/settings/account');- await waitForText('Manage billing', 10_000);- expect(await textExists('Open billing dashboard')).toBe(true);+ await waitForText('Plan & billing', 10_000);+ expect(await textExists('Open dashboard')).toBe(true);await navigateToHome();});});diff --git a/app/test/e2e/specs/settings-account-preferences.spec.ts b/app/test/e2e/specs/settings-account-preferences.spec.tsindex 8dc587f8cd..4d637837e2 100644--- a/app/test/e2e/specs/settings-account-preferences.spec.ts+++ b/app/test/e2e/specs/settings-account-preferences.spec.ts@@ -104,10 +104,10 @@ describe('Settings - Account Preferences', function () {it('opens the billing route and shows the account billing handoff', async function () {this.timeout(60_000);- await navigateViaHash('/settings/billing');+ await navigateViaHash('/settings/account');await waitForHashContains('/settings/account');- await waitForText('Manage billing', 15_000);- expect(await textExists('Open billing dashboard')).toBe(true);+ await waitForText('Plan & billing', 15_000);+ expect(await textExists('Open dashboard')).toBe(true);});});diff --git a/app/test/playwright/specs/settings-account-preferences.spec.ts b/app/test/playwright/specs/settings-account-preferences.spec.tsindex 25193f9f77..bdb9ecbd58 100644--- a/app/test/playwright/specs/settings-account-preferences.spec.ts+++ b/app/test/playwright/specs/settings-account-preferences.spec.ts@@ -174,6 +174,7 @@ test.describe('Settings - Account Preferences', () => {await expect(page.getByTestId('account-panel')).toBeVisible();await expect(page.getByTestId('account-open-billing')).toBeVisible();- await expect(page.getByText(/Manage your subscription and payment method/)).toBeVisible();+ await expect(page.getByText('Plan & billing')).toBeVisible();+ await expect(page.getByText('Manage your subscription, credits, and invoices')).toBeVisible();});});