test: lock mobile pull quote visual fidelity
This commit is contained in:
@@ -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,
|
||||
}) => {
|
||||
|
||||
Reference in New Issue
Block a user