fix(locale): correct two stale product-default-Chinese comments

Chinese is no longer the product default since FALLBACK_LOCALE moved to en
in this branch. connectFreshWorkspaceZh and the access-confirmation scenario
both reach the Chinese surface by advertising ZH_BROWSER_LOCALE, not by
inheriting a default, so their comments must say so.
This commit is contained in:
Chinesezjc
2026-08-18 17:39:06 +08:00
parent e78fdf05fe
commit 0fe31f11a3
2 changed files with 7 additions and 5 deletions
+3 -2
View File
@@ -30,8 +30,9 @@ describe('web e2e: Full access confirmation', () => {
// is temporarily unavailable.
const executablePath = process.env.DSH_PLAYWRIGHT_EXECUTABLE_PATH
browser = await chromium.launch(executablePath === undefined ? {} : { executablePath })
// Keep the product default Chinese locale: the golden pins the actual
// registered dictionary rather than a test-local translation callback.
// Keep the Chinese surface via {@link ZH_BROWSER_LOCALE}: the golden pins
// the actual registered dictionary rather than a test-local translation
// callback.
page = await browser.newPage({ viewport: { width: 1680, height: 1000 }, locale: ZH_BROWSER_LOCALE })
tripwire = watchConsole(page)
await page.goto(scaffold.baseUrl, { waitUntil: 'load' })
+4 -3
View File
@@ -88,9 +88,10 @@ export async function connectFreshWorkspace(page: Page, root: string, name = 'wo
}
/**
* {@link connectFreshWorkspace} over the product default Chinese locale: the
* English helper's anchors assume the locale every other scenario boots, so a
* scenario that deliberately keeps zh needs the localized picker copy.
* {@link connectFreshWorkspace} over a page that advertises
* {@link ZH_BROWSER_LOCALE}: the English helper's anchors assume the locale
* most other scenarios boot, so a scenario that deliberately keeps zh needs
* the localized picker copy.
* @param page - the browser page under test.
* @param root - workspace parent directory.
* @param name - directory created under `root` and connected.