xrdwb17xu: Hide native video controls until play and move the author aside while a slide video plays
This commit is contained in:
@@ -119,3 +119,13 @@ describe("one step per gesture", () => {
|
||||
expect(stepTarget(2, 0, 5)).toBe(2);
|
||||
});
|
||||
});
|
||||
|
||||
describe("video slide before play", () => {
|
||||
it("shows only the frosted play button, no native controls", () => {
|
||||
const html = render({});
|
||||
const video = /<video[^>]*>/.exec(html)?.[0] ?? "";
|
||||
expect(video).not.toBe("");
|
||||
expect(video).not.toContain("controls");
|
||||
expect(html).toContain('class="post-play slide-play"');
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user