[Backport staging] Fix video body interaction (#34163)

Co-authored-by: Zack <zazi21@student.bth.se>
This commit is contained in:
ElementRobot
2026-07-07 13:24:42 +01:00
committed by GitHub
co-authored by Zack
parent 58fa4d8883
commit 1897980488
2 changed files with 2 additions and 0 deletions
@@ -8,6 +8,7 @@
}
.video {
position: relative;
display: block;
width: 100%;
height: 100%;
@@ -112,6 +112,7 @@ describe("VideoBodyView", () => {
);
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("poster", "https://example.org/demo-poster.jpg");
expect(video).toHaveAttribute("preload", "none");