fix(webui): restore session drag and review findings
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
import { readFileSync } from "node:fs";
|
||||
import { resolve } from "node:path";
|
||||
|
||||
import { describe, expect, it } from "vitest";
|
||||
|
||||
describe("index.html", () => {
|
||||
it("keeps browser zoom available", () => {
|
||||
const html = readFileSync(resolve(process.cwd(), "index.html"), "utf8");
|
||||
const viewport = html.match(/<meta\s+name="viewport"\s+content="([^"]+)"/i)?.[1];
|
||||
|
||||
expect(viewport).toContain("width=device-width");
|
||||
expect(viewport).not.toContain("user-scalable=no");
|
||||
expect(viewport).not.toMatch(/maximum-scale\s*=\s*1(?:\.0)?(?:,|$)/);
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user