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

@@ -112,25 +112,6 @@ test.describe('User Journey Tests', () => {
await expect(createWorkspace).not.toBeVisible({ timeout: 5_000 });
});
test('J3c: tier interruption modal exposes a named close contract', async ({ page }) => {
await gotoApp(page);
await page.evaluate(() => {
window.dispatchEvent(new CustomEvent('waggle:tier-insufficient', {
detail: {
required: 'TEAMS',
actual: 'FREE',
message: 'Team workspaces require a Team plan.',
},
}));
});
const upgrade = page.getByRole('dialog', { name: /upgrade to unlock/i });
await expect(upgrade).toBeVisible({ timeout: 5_000 });
await upgrade.getByRole('button', { name: /close upgrade dialog/i }).click();
await expect(upgrade).not.toBeVisible({ timeout: 5_000 });
});
test('J3d: approvals revoke-all uses an in-app confirmation', async ({ page }) => {
const nativeDialogs: string[] = [];
let clearCalled = false;
@@ -621,7 +602,7 @@ test.describe('User Journey Tests', () => {
test('J-mobile: Settings is usable at 390px width', async ({ page }) => {
await page.setViewportSize({ width: 390, height: 844 });
const routes = ['/settings', '/settings?tab=models', '/settings?tab=billing', '/settings/profile'];
const routes = ['/settings', '/settings?tab=models', '/settings?tab=backup', '/settings/profile'];
for (const route of routes) {
await gotoApp(page, route);
if (route !== '/settings/profile') {
@@ -906,10 +887,11 @@ test.describe('User Journey Tests', () => {
await gotoApp(page, '/platform');
await expect(page.locator('body')).toContainText(/platform|local|governance|memory|agent/i);
await page.goto(routeWithSkip('/payment-cancelled'), { waitUntil: 'domcontentloaded' });
await page.waitForURL(/\/settings\?tab=billing/, { timeout: 10_000 });
await waitForShell(page);
await expect(page.locator('body')).toContainText(/billing|plan|team|solo|checkout/i);
// Payment pages are gone in the community edition (ADR-0001).
for (const route of ['/payment-cancelled', '/payment-success']) {
await gotoApp(page, route);
await expect(page.locator('body')).toContainText(/page you.re after doesn.t exist/i);
}
});
test('J-route-coverage: priority thin routes render meaningful shells', async ({ page }) => {
@@ -920,10 +902,9 @@ test.describe('User Journey Tests', () => {
['/artifacts', /artifact|library|document|presentation/i],
['/settings/profile', /who are you|identity|writing style|save/i],
['/settings/timeline', /timeline|workspace|activity/i],
['/payment-success', /checkout|paid|plans|nothing to confirm/i],
['/automations', /automation|schedule|trigger|history|logs/i],
['/mcps', /mcp hub|installed|catalog|custom/i],
['/settings/usage', /usage|cost|tokens|budget|upgrade/i],
['/settings/usage', /usage|cost|tokens|budget/i],
['/files', /storage|files|workspace|local/i],
];