// 双入口对拍的浏览器侧说明。CI 门禁在 backend command_pairs_test.go: // 新内置命令未写入 testdata/command-pairs.json 时 go test 失败。 // 人工抽查:PLAYWRIGHT_INCLUDE_COMMAND_PAIRS=1 npx playwright test e2e/command-pairs.playwright.ts // (scripts/e2e.sh 驱动的验收跑 auth-on 种子环境,本用例面向免登录演示环境,默认跳过。) import { test, expect } from '@playwright/test' test('command menu and chat share builtin.help', async ({ page }) => { test.skip(!process.env.PLAYWRIGHT_BASE_URL || !process.env.PLAYWRIGHT_INCLUDE_COMMAND_PAIRS, 'set PLAYWRIGHT_BASE_URL and PLAYWRIGHT_INCLUDE_COMMAND_PAIRS to run') await page.goto(process.env.PLAYWRIGHT_BASE_URL!) await expect(page.getByText('帮助')).toBeVisible() })