SPB Git forge

spb/polyllm

Public
15commits 1branches 0releases
2.2 MBsize
maindefault branch
13 days agolast push
TypeScript 97.4% SQL 1% JavaScript 0.9% CSS 0.6%
589 B · 13 lines typescript
Raw Blame History
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