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 specs for account panel
Steven Enamakel03f8cf58f768
diff --git a/app/test/e2e/specs/crypto-payment-flow.spec.ts b/app/test/e2e/specs/crypto-payment-flow.spec.tsindex c1d0b68820..01885267fd 100644--- a/app/test/e2e/specs/crypto-payment-flow.spec.ts+++ b/app/test/e2e/specs/crypto-payment-flow.spec.ts@@ -32,33 +32,24 @@ describe('Crypto Payment Flow', () => {await performFullLogin('e2e-crypto-payment-token');});- it.skip('6.1 — billing panel shows "moved to web" redirect page', async function () {+ it('6.1 — account panel shows billing dashboard handoff', async function () {this.timeout(60_000);- await navigateToBilling();+ await navigateViaHash('/settings/account');await waitForText('Open billing dashboard', 20_000);- console.log(`${LOG_PREFIX} 6.1 — billing redirect panel loaded`);+ console.log(`${LOG_PREFIX} 6.1 — account billing handoff loaded`);});- it.skip('6.2 — "Open billing dashboard" button is present', async () => {- await navigateToBilling();+ it('6.2 — "Open billing dashboard" button is present', async () => {+ await navigateViaHash('/settings/account');const hasButton = await textExists('Open billing dashboard');expect(hasButton).toBe(true);console.log(`${LOG_PREFIX} 6.2 — "Open billing dashboard" button present`);});- it.skip('6.3 — opening-browser status message is shown on mount', async () => {- await navigateToBilling();- await waitForText('Billing moved to the web', 10_000);- // BillingPanel triggers openUrl on mount; while it is in-flight it shows- // t('settings.billing.openingBrowser') = 'Opening your browser...'- // After the promise resolves it transitions to 'idle' / 'error'.- // Either the opening message or the idle fallback must be visible.- const hasOpeningMsg =- (await textExists('Opening your browser')) ||- (await textExists('If your browser did not open')) ||- (await textExists('Open billing dashboard'));- expect(hasOpeningMsg).toBe(true);- console.log(`${LOG_PREFIX} 6.3 — browser-open status message 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 navigateToHome();});});diff --git a/app/test/e2e/specs/settings-account-preferences.spec.ts b/app/test/e2e/specs/settings-account-preferences.spec.tsindex 66cc6e0e76..8dc587f8cd 100644--- a/app/test/e2e/specs/settings-account-preferences.spec.ts+++ b/app/test/e2e/specs/settings-account-preferences.spec.ts@@ -40,7 +40,7 @@ describe('Settings - Account Preferences', function () {await waitForText('Language', 15_000);});- it.skip('saves a generated recovery phrase and exposes configured wallet state', async function () {+ it('saves a generated recovery phrase and exposes configured wallet state', async function () {this.timeout(90_000);await navigateViaHash('/settings/recovery-phrase');@@ -102,20 +102,12 @@ describe('Settings - Account Preferences', function () {expect(Boolean(snapshot.result?.result?.analyticsEnabled)).toBe(!initialAnalytics);});- it.skip('opens the billing route and shows the moved-to-web redirect panel', async function () {+ it('opens the billing route and shows the account billing handoff', async function () {this.timeout(60_000);await navigateViaHash('/settings/billing');- await waitForHashContains('/settings/billing');- // BillingPanel is now a static "moved to the web" redirect page: heading- // t('settings.billing.movedToWeb'), an "Open billing dashboard" button, and- // a "Back to settings" link. The previous auto-open status copy- // ("Opening your browser…" / "If your browser did not open…") was removed,- // so we assert the panel content instead of the transient open state.- await waitForText('Billing moved to the web', 15_000);+ await waitForHashContains('/settings/account');+ await waitForText('Manage billing', 15_000);expect(await textExists('Open billing dashboard')).toBe(true);-- await clickText('Back to settings', 10_000);- await waitForHashContains('/settings');});});diff --git a/app/test/playwright/specs/settings-account-preferences.spec.ts b/app/test/playwright/specs/settings-account-preferences.spec.tsindex d35b6918de..25193f9f77 100644--- a/app/test/playwright/specs/settings-account-preferences.spec.ts+++ b/app/test/playwright/specs/settings-account-preferences.spec.ts@@ -169,17 +169,11 @@ test.describe('Settings - Account Preferences', () => {}});- test('opens the billing route and settles the redirect status copy', async ({ page }) => {+ test('shows the billing dashboard handoff on the account panel', async ({ page }) => {await gotoSettingsRoute(page, '/settings/account');- await expect(page.getByRole('heading', { name: 'Billing', exact: true })).toBeVisible();- // Billing no longer auto-opens the browser; the panel explains billing- // moved to the web and offers an explicit open button.- await expect(- page.getByText(/Subscription changes, payment methods, credits, and invoices are now managed/)- ).toBeVisible();-- await page.getByRole('button', { name: 'Back to settings' }).click();- await expect.poll(async () => page.evaluate(() => window.location.hash)).toContain('/settings');+ 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();});});