- Timestamp:
- 07/30/2026 08:23:47 AM (6 weeks ago)
- Branches:
- main
- Children:
- 094f7d0
- Parents:
- 15f1cb5
- File:
-
- 1 edited
-
test/c2s-compose.test.js (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
test/c2s-compose.test.js
r15f1cb5 r2a10445 85 85 assert.equal(vid.icon && vid.icon.url, 'https://test.example/media/reply-media/film.mp4.poster.jpg', 86 86 'the poster federates as the attachment icon'); 87 // The web tile plays the video as its own thumbnail (Robins aanwijzing):88 // the first video becomes the cover video, with NO cover image beside it,89 // because the tile's image branch would win and freeze the tile.90 assert.equal(post.cover_video_url, '/media/reply-media/film.mp4');87 // NO cover (Robins besluit): a cover next to the content showed the same 88 // video twice on the post page. The tiles derive their picture from the 89 // content (post-tile/post-card), so the post model stays single-source. 90 assert.equal(post.cover_video_url, null); 91 91 assert.equal(post.cover_image_url, null); 92 92 assert.equal((note.attachment || []).filter((a) => a.url.endsWith('film.mp4')).length, 1, 93 ' cover video + attachment dedupe to the one entry that knows its poster');93 'and the video federates exactly once'); 94 94 } finally { 95 95 if (prev === undefined) delete process.env.MEDIA_PATH; else process.env.MEDIA_PATH = prev; … … 123 123 assert.equal(r.status, 201, 'a picture can be the whole message'); 124 124 const post = db.prepare('SELECT * FROM posts WHERE id = ?').get(r.id); 125 assert.equal(post.cover_image_url, '/media/reply-media/alleen.jpg', 126 'a photo post fronts its photo instead of the (untitled) gradient'); 125 assert.equal(post.cover_image_url, null, 'no cover: the tile reads the photo from the content'); 127 126 });
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)