Cypress: Code App - Seeding Task - #3994
Conversation
583c99b to
f401960
Compare
- Use sdk.token instead of a bare getAuthToken() call, which only worked by relying on cached auth state from an earlier call - Add missing content-type header on the script fetch POST, which the API needs to parse the JSON body (was silently failing) - Simplify async flow to match content.ts conventions - Add cypress/e2e/code/seed.spec.js plus view/stylesheet/script fixtures exercising all three seed:code branches Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
…ding # Conflicts: # cypress/index.d.ts
Keeping the fixtures — other PRs building on this branch will use them. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Will be added in the actual PR that consumes them. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Code Review: Cypress Code App Seeding TaskOverall: The structure and intent are solid and follows the established Bugs / Correctness1. 2. No 3. Type mismatch: Minor / Nits4. What is Good
|
Addresses review: silent null returns turned real API failures into confusing downstream null-reference errors in consuming tests. Matches the fail-loud pattern content.ts already uses. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Code ReviewOverviewAdds a The fix for IssuesMust fix
Nit
Other observations
|
cf17404 to
9b6cad5
Compare
Code Review — ✅ No blockers · 🟡 3 warning(s) — see inline comments |
Code Review — ✅ No blockers · 🟡 2 warning(s) — see inline comments |
Code Review — ✅ No blockers · 🟡 3 warning(s) — see inline comments |
Code Review — ✅ No blockers · 🟡 2 warning(s) — see inline comments |
Code Review — ✅ No blockers · 🟡 2 warning(s) — see inline comments |
Code Review — ✅ No blockers · 🟡 2 warning(s) — see inline comments |
Code Review — ✅ No blockers |
cleanup:codetask and teardown hook for seeded views/scripts/stylesheetsActionButtondroppingdata-cyin the inactive/disabled render branchNote: Had to use native fetch for creating script files since the SDK doesn't support that yet
Test fixtures and e2e coverage for this task will be added in the PR that actually consumes
seed:code.