Two issues made the watermarked share-link spec flaky on Firefox (and
silently mis-typed on every browser):
1. test.use inside a for loop leaks the last iteration's value to all
tests: both the 'image' and 'video' cases were actually running the
video flow. Scope each test.use inside a test.describe block.
2. Selecting the file by clicking the card body raced with the preview
area re-rendering (video sprite scrubber hover) and the Radix menu
exit animation, which could swallow the click on Firefox. Select via
the card checkbox instead, and wait for the menu to fully unmount
after Escape before the next interaction.
Verified stable: 6/6 on Firefox, 2/2 on Chromium, 2/2 on WebKit.
Add web app e2e coverage for the frequently-combined watermark +
download-disabled share link configuration. For both watermarkable media
types (image and video) the test asserts:
- no download affordance on the public share list page (card menu,
selection bar) and the public file detail page (viewer control bar,
top-nav file dropdown; video also has no resolution submenu)
- the proxy loaded in the detail page is the watermarked version
(-watermark- S3 keys) and no original transcode key is requested
- the download-url endpoint rejects guest download attempts with 403
Extends the e2e share helpers with apiUpdateShare, apiEnableShareWatermark
and apiPublicDownloadUrl, and documents the new cases in the e2e README.
Add four project-level webapp e2e tests:
- invite a member to a project; the invitee only sees the invited project
- drag a file into a folder and a folder into another folder
- drag a file onto a file to create a version stack
- drag a file onto a version stack to add a new version
Supporting changes:
- expose rootFolderId on the project fixture
- add seedFolder/seedFile helpers and a cross-browser dragCard helper
(WebKit requires pointer moves in awaited batches for dnd-kit activation)
- add project-members-trigger testid to the file-browser toolbar
- document the new test cases in the e2e README
Add six domain-level web app e2e tests covering team member removal,
file upload/delete/restore, share link creation and password protection,
and collection creation. Introduce a parametrized 'file' fixture with
configurable media types (text/binary/image/video/pdf) for future
type-scoped tests, plus helpers for share APIs and team member seeding.
Also document all web app e2e test cases in apps/web/e2e/README.md and
require this documentation in AGENTS.md.