SPB Git

spb/polyllm

Public
589 B · 13 lines typescript
1import { test, expect } from "@playwright/test";2import { noConsoleErrors } from "./helpers";34test("landing and auth pages have no horizontal overflow on mobile", async ({ page }) => {5  const errors = await noConsoleErrors(page);6  for (const path of ["/", "/login", "/signup", "/forgot-password"]) {7    await page.goto(path);8    const overflow = await page.evaluate(() => document.documentElement.scrollWidth - document.documentElement.clientWidth);9    expect(overflow, `${path} overflows horizontally by ${overflow}px`).toBeLessThanOrEqual(1);10  }11  expect(errors).toEqual([]);12});13
Files · c617fec1561e07c60ce3493a4ac2109e9808e462
Menu

Theme