Compare commits

..
Author SHA1 Message Date
Andrew BeveridgeandClaude Opus 4.5 752807ccf2 feat: add production E2E tests for payment webhook flows
Add test-webhook endpoint and comprehensive E2E tests for Stripe payment flows:
- Credit purchase flow testing
- Made-for-you search order testing
- Made-for-you YouTube URL order testing (would have caught 2026-01-28 bug)
- Webhook security validation tests

The test-webhook endpoint allows E2E tests to simulate Stripe webhook events
without requiring valid signatures, while enforcing admin auth and e2e-test-
session ID prefix for safety.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-29 21:27:50 -08:00
2 changed files with 1 additions and 16 deletions

No files matched your search

+1 -1
View File
@@ -200,7 +200,7 @@ export async function getJobDetails(
adminToken: string,
apiUrl: string = URLS.production.api
): Promise<Record<string, unknown> | null> {
const response = await fetch(`${apiUrl}/api/jobs/${jobId}`, {
const response = await fetch(`${apiUrl}/api/admin/jobs/${jobId}`, {
headers: {
'Authorization': `Bearer ${adminToken}`,
},
-15
View File
@@ -61,21 +61,6 @@ def create_database() -> dict:
opts=pulumi.ResourceOptions(depends_on=[firestore_db]),
)
# Jobs: query by customer_email + made_for_you, order by created_at
# Used for finding existing made-for-you orders for a customer
resources["firestore_index_jobs_customer_mfy"] = firestore.Index(
"firestore-index-jobs-customer-mfy",
project=PROJECT_ID,
database=firestore_db.name,
collection="jobs",
fields=[
firestore.IndexFieldArgs(field_path="customer_email", order="ASCENDING"),
firestore.IndexFieldArgs(field_path="made_for_you", order="ASCENDING"),
firestore.IndexFieldArgs(field_path="created_at", order="DESCENDING"),
],
opts=pulumi.ResourceOptions(depends_on=[firestore_db]),
)
# Sessions: query by user_email + is_active, order by created_at
resources["firestore_index_sessions_active"] = firestore.Index(
"firestore-index-sessions-active",