// This small layout regression runs only with Linux Chrome. It uses a data // URL, a temporary profile and no network or user browser state. import { expect, test } from "bun:test" import { mkdtemp, rm } from "node:fs/promises" import { tmpdir } from "node:os" import { join } from "node:path" import { runInNewContext } from "node:vm" const chrome = process.platform === "linux" && (Bun.which("google-chrome") || Bun.which("google-chrome-stable") || Bun.which("chromium") || Bun.which("chromium-browser")) const LAUNCH_BOUND = 25000 test.skipIf(!chrome)("narrow settings footer keeps translated actions inside the dialog", async () => { const read = (name) => Bun.file(new URL(`./page/${name}`, import.meta.url)).text() const [html, css, dictionary] = await Promise.all([read("settings.html"), read("style.css"), read("i18n.js")]) const footer = html.match(/