Fix video body interaction in Chrome (#34160)

This commit is contained in:
Zack
2026-07-07 10:10:41 +00:00
committed by GitHub
parent 6fda0ad60f
commit 48bd69a8b6
2 changed files with 2 additions and 0 deletions
@@ -8,6 +8,7 @@
} }
.video { .video {
position: relative;
display: block; display: block;
width: 100%; width: 100%;
height: 100%; height: 100%;
@@ -112,6 +112,7 @@ describe("VideoBodyView", () => {
); );
const video = screen.getByLabelText("Product demo video") as HTMLVideoElement; const video = screen.getByLabelText("Product demo video") as HTMLVideoElement;
expect(video).toHaveStyle({ position: "relative" });
expect(video).toHaveAttribute("src", "https://example.org/demo.mp4"); expect(video).toHaveAttribute("src", "https://example.org/demo.mp4");
expect(video).toHaveAttribute("poster", "https://example.org/demo-poster.jpg"); expect(video).toHaveAttribute("poster", "https://example.org/demo-poster.jpg");
expect(video).toHaveAttribute("preload", "none"); expect(video).toHaveAttribute("preload", "none");