test: lock mobile pull quote visual fidelity

This commit is contained in:
Keith Solomon
2026-06-27 18:48:11 -05:00
parent 15e832645c
commit 445269d291
3 changed files with 20 additions and 4 deletions
+15
View File
@@ -140,6 +140,21 @@ test("mobile pull quote scales proportionally through 767px", async ({
);
});
test("mobile pull quote matches the supplied visual reference", async ({
page,
}) => {
await page.goto(homepage);
await expect(page.locator(".pull-quote")).toHaveScreenshot(
"pullquote-reference.png",
{
animations: "disabled",
maxDiffPixelRatio: 0.094,
threshold: 0.2,
},
);
});
test("mobile recent posts exposes previous and next controls", async ({
page,
}) => {