test(e2e): cover the profile-picture upload flow (currently test.fixme) #391
Labels
No labels
area:auth
area:ci
area:db
area:infra
area:native
area:pwa
area:service
epic
feature
foundation
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
james/carol#391
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Deferred from the per-domain e2e specs (#325, PR #335) and carried through #326/#327.
Gap
apps/e2e/tests/profile.spec.tshas the picture upload + remove step markedtest.fixme. Root cause (verified empirically): expo-image-picker's web shim appends a hidden<input type=file>and synthetically clicks it; headless Chromium answers the file dialog with a synchronouscancel, so the shim removes the input within the same tick —setInputFilescan't win the race. The rest of the profile spec (basics edit + contact) runs; only the upload step is skipped.Options to evaluate
POST /api/profile/picture(multipart) directly;apps/api/tests/api/profile.test.tsalready covers it, so this may just be confirming the gap is acceptable and removing thefixmewith a documented rationale.page.on("filechooser")+ pre-arming, or bypassing the shim's click, can land the file before the cancel.Done when
Either the web upload step runs green (option 1/3) or the
fixmeis replaced with a documented decision pointing at the API-layer coverage (option 2). Referenceapps/e2e/tests/profile.spec.ts+apps/client/lib/profile/pictureUpload.ts.