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:
@@ -600,23 +600,6 @@ test.describe('B5 — Security Hardening (vs all competitors)', () => {
|
||||
// timeout/ECONNRESET = server rejected oversized request (acceptable)
|
||||
}
|
||||
});
|
||||
|
||||
test('B5.7 — Stripe webhook signature verification enforced (no bypass)', async ({ request }) => {
|
||||
// Without valid signature, webhook must reject
|
||||
const fakeEvents = [
|
||||
{ type: 'checkout.session.completed', data: { object: { id: 'cs_test_fake' } } },
|
||||
{ type: 'customer.subscription.updated', data: { object: { id: 'sub_fake' } } },
|
||||
];
|
||||
for (const event of fakeEvents) {
|
||||
const res = await request.post(`${API}/api/stripe/webhook`, {
|
||||
data: event,
|
||||
// Intentionally no stripe-signature header
|
||||
});
|
||||
// Without signature verification, attackers could fake tier upgrades
|
||||
expect([400, 503], `Webhook accepted without signature: ${event.type}`
|
||||
).toContain(res.status());
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
// ══════════════════════════════════════════════════════════════════════════════
|
||||
@@ -686,18 +669,6 @@ test.describe('B6 — Onboarding Friction (vs Claude Code / OpenClaw / Hermes)',
|
||||
// Claude Code setup: ~5 min. Hermes: ~30 min. Waggle: < 1 second.
|
||||
expect(ms, `5-step onboarding took ${ms}ms — should be < 1000ms`).toBeLessThan(1000);
|
||||
});
|
||||
|
||||
test('B6.7 — Tier is visible immediately (no hidden pricing)', async ({ request }) => {
|
||||
// User must know immediately what tier they have and what it unlocks
|
||||
// ChatGPT: pricing hidden behind Plus/Pro. Claude Code: no tiering UI.
|
||||
const res = await request.get(`${API}/api/tier`);
|
||||
expect(res.ok()).toBe(true);
|
||||
const data = await res.json();
|
||||
expect(data.tier).toBeDefined();
|
||||
expect(data.capabilities).toBeDefined();
|
||||
// User must be able to see what they can/cannot do
|
||||
expect(typeof data.capabilities).toBe('object');
|
||||
});
|
||||
});
|
||||
|
||||
// ══════════════════════════════════════════════════════════════════════════════
|
||||
@@ -1059,15 +1030,6 @@ test.describe('B10 — Composite Competitive Score', () => {
|
||||
return (await r.json()).total >= 500;
|
||||
},
|
||||
},
|
||||
{
|
||||
capability: 'Tier-based billing system',
|
||||
test: async () => {
|
||||
const r = await request.get(`${API}/api/tier`);
|
||||
if (!r.ok()) return false;
|
||||
const d = await r.json();
|
||||
return ['TRIAL', 'FREE', 'TEAMS', 'ENTERPRISE'].includes(d.tier);
|
||||
},
|
||||
},
|
||||
{
|
||||
capability: 'Automation hooks (deny rules)',
|
||||
test: async () => {
|
||||
|
||||
Reference in New Issue
Block a user