fix(data): 清理旧数据并保护服务端写入

This commit is contained in:
Script Generator
2026-07-02 09:30:50 +08:00
parent 28e0c6de19
commit 916bd17a48
38 changed files with 1346 additions and 194 deletions

View File

@@ -54,6 +54,18 @@ test('wenfan xiaobao page provides records, chat, and voice input surfaces', ()
assert.match(page, /: 'bg-white hover:bg-\[var\(--bg-subtle\)\]'/);
});
test('wenfan xiaobao page does not ship seeded conversation history', () => {
const page = readFileSync(join(process.cwd(), 'app/wenfan-xiaobao/page.tsx'), 'utf8');
assert.match(page, /useState<WenfanConversation\[\]>\(\[\]\)/);
assert.doesNotMatch(page, /INITIAL_CONVERSATIONS/);
assert.doesNotMatch(page, /history-product-create/);
assert.doesNotMatch(page, /history-version-requirements/);
assert.doesNotMatch(page, /history-dev-task-submit/);
assert.doesNotMatch(page, /history-test-bug/);
assert.doesNotMatch(page, /history-activity-log/);
});
test('wenfan help screenshot script targets version detail tabs and failed test case bug entry', () => {
const script = readFileSync(join(process.cwd(), 'scripts/capture-wenfan-help-screenshots.mjs'), 'utf8');