TypeScript 97.4%
SQL 1%
JavaScript 0.9%
CSS 0.6%
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