99puxwol5: Show native video controls on trending cards only after the first play

This commit is contained in:
2026-10-20 09:43:19 -06:00
parent 583e287af6
commit 7647d78550
2 changed files with 12 additions and 8 deletions
+3 -1
View File
@@ -57,7 +57,9 @@ describe("TrendingMinnectsRail", () => {
minnects: [minnect({ media: { kind: "video", url, duration: 9, waveform: null } })],
}));
expect(out).toContain("<video");
expect(out).toContain("controls");
// Before the first play only our play button shows, not the native controls too.
expect(out).not.toMatch(/<video[^>]*controls/);
expect(out).toContain('class="trend-play"');
expect(out).toContain("preload=\"none\"");
expect(out).toContain("X-Amz-Signature=abc");
expect(out).toContain('poster="https://x/t.jpg"');