test(e2e): align specs with the community edition and record the e2e baseline

The first full e2e run on this branch failed 19 tests, all on features the
community edition removed: /api/tier, Stripe, /api/compliance, the billing
settings tab, the payment pages and the upgrade dialog. Those checks now
assert that the endpoints and pages are gone (404); tier, billing and
team-settings probes are dropped from the remaining journeys. The rerun is
410 passed, 18 skipped, 0 failed.
This commit is contained in:
shumeiko.it
2026-10-20 01:36:38 +02:00
parent 01a2d8a4ce
commit 20567ecb10
11 changed files with 57 additions and 348 deletions

View File

@@ -356,71 +356,20 @@ const PERSONAS: PersonaBundle[] = [
{
slug: 'team-admin-security-reviewer',
title: 'Persona 4: Team Admin / Security Reviewer',
accountMode: 'accountless local with mocked Teams-tier billing/admin state',
billingTier: 'Solo / FREE comparison lane plus mocked Teams billing and governance lane; real authenticated Teams server still deferred',
accountMode: 'accountless local; team mode is not part of the community edition',
billingTier: 'none (the community edition has no billing)',
uiDisclosureTier: 'admin',
modelState: 'not central unless Settings model copy is inspected',
dataState: 'billing, vault, backup, approvals, governance shell, and Teams-unlocked settings state',
offlineErrorState: 'backup failure, restore failure, checkout recovery, and approval-grant revocation sampled',
dataState: 'vault, backup, approvals and governance shell',
offlineErrorState: 'backup failure, restore failure and approval-grant revocation sampled',
viewport: { width: 1440, height: 900 },
nonMainGateDecisions: ['T13/T14/T15 evidenced or explicitly deferred for launch, desktop, and admin/utility paths.'],
routes: [
{ id: 'billing', path: '/settings?tab=billing', expected: /billing|plan|solo|team|checkout/i },
{ id: 'vault', path: '/settings/vault', expected: /vault|secret|encrypted|key/i },
{ id: 'team', path: '/team', expected: /team|governance|permission|member|upgrade/i },
{ id: 'approvals', path: '/approvals', expected: /approval|pending|risk|agent/i },
],
failureProbes: [
{
id: 'billing-checkout-unavailable',
path: '/settings?tab=billing',
action: 'none',
mocks: [
{ url: '**/api/tier', status: 200, body: { tier: 'FREE', capabilities: {}, usage: {} } },
{ url: '**/api/stripe/status', status: 200, body: { configured: false } },
],
expected: /Unavailable/i,
},
{
id: 'billing-team-active-state',
path: '/settings?tab=billing',
action: 'none',
mocks: [
{ url: '**/api/tier', status: 200, body: { tier: 'TEAMS', capabilities: {}, usage: {} } },
{ url: '**/api/stripe/status', status: 200, body: { configured: true } },
],
expected: /Waggle Team|\$49\/mo per seat|shared workspaces, WaggleDance, governance|Manage subscription/i,
},
{
id: 'team-settings-unlocked-state',
path: '/settings?tab=team',
action: 'none',
mocks: [
{ url: '**/api/tier', status: 200, body: { tier: 'TEAMS', capabilities: {}, usage: {} } },
{ url: '**/api/team/status', status: 200, body: { connected: false } },
],
expected: /Team Server|Team Server URL|Auth Token|Connecting to a team server/i,
},
{
id: 'billing-checkout-success-return',
path: '/payment-success?session_id=cs_bundle_team',
action: 'none',
mocks: [
{ url: '**/api/tier', status: 200, body: { tier: 'FREE', capabilities: {}, usage: {} } },
{ url: '**/api/stripe/sync', status: 200, body: { tier: 'TEAMS', customerId: 'cus_bundle' } },
],
expected: /Team|Manage billing|shared team memory/i,
},
{
id: 'billing-checkout-cancel-return',
path: '/payment-cancelled',
action: 'none',
mocks: [
{ url: '**/api/tier', status: 200, body: { tier: 'FREE', capabilities: {}, usage: {} } },
{ url: '**/api/stripe/status', status: 200, body: { configured: true } },
],
expected: /Checkout was cancelled|No charge was made/i,
},
{
id: 'backup-create-failure',
path: '/settings?tab=backup',