99puxwol5: Show native video controls on trending cards only after the first play
This commit is contained in:
@@ -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"');
|
||||
|
||||
Reference in New Issue
Block a user