Skip to content

Spot it. Save it. Free, local-first Chrome extension for images, videos and prompts. Explore 2,000+ curated cases and connect your library to AI Agents via MCP. 提示词导演

固定跨平台浏览器测试语言

MigenAI4ddcebf84bca
diff --git a/test/e2e_support.py b/test/e2e_support.py
index 17cadca..d4ccfaa 100644
--- a/test/e2e_support.py
+++ b/test/e2e_support.py
@@ -92,6 +92,7 @@ def launch_context(
viewport=viewport,
permissions=["clipboard-read", "clipboard-write"],
args=[
+ "--lang=zh-CN",
f"--disable-extensions-except={extension_dir}",
f"--load-extension={extension_dir}",
],
diff --git a/test/release-gate.test.js b/test/release-gate.test.js
index 832c9f1..d301b45 100644
--- a/test/release-gate.test.js
+++ b/test/release-gate.test.js
@@ -20,6 +20,10 @@ test("installed-package acceptance can point the shared browser harness at an un
assert.match(e2eSupport, /PROMPTDIRECTOR_E2E_EXTENSION_DIR/);
});
+test("the shared browser harness has a deterministic default UI language across operating systems", () => {
+ assert.match(e2eSupport, /--lang=zh-CN/);
+});
+
test("release verification cannot bypass the historical data compatibility gate", () => {
const scripts = packageJson.scripts;
assert.equal(scripts["check:compat"], "node tools/check-data-compatibility.mjs");