Archived
差异明细表头只留中文;落账确认「字段」格同款(W05 1.4.6)
用户:「AI 产出的差异明细这个表格表头只需要中文描述就行了,字段名就不要了」。 差异明细表头去英文列名(含窄屏列标 data-h);落账确认页「字段」格是同一种毛病(19 处),一并去掉 —— 数据工单页、审核页各指出一次,这页不等第三次。测试改成五张件逐张断言表头与字段格不含英文列名。 Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FJcX8A6TWp4GRs41TYryEh
This commit is contained in:
@@ -322,11 +322,11 @@ describe('说明书与剧本的骨架', () => {
|
||||
expect(html).not.toContain('<span class="jc-vcell ro"><span class="stx"');
|
||||
});
|
||||
|
||||
it('数据工单三张表的表头只留中文:没有英文列名、没有 .thd 小字(2026-08-27 用户定)', () => {
|
||||
for (const name of ['p08-master-create', 'p10-document-create'] as const) {
|
||||
const html = manifest.assets.viewTemplates.find((v) => v.name === name)?.html ?? '';
|
||||
expect(html, name).not.toContain('class="thd"');
|
||||
for (const th of html.match(/<th[^>]*>[^<]*<\/th>/g) ?? []) expect(th, name).not.toMatch(/[a-z]_[a-z]/);
|
||||
it('表头与「字段」格只留中文:没有英文列名、没有 .thd 小字 —— 五张件一律(2026-08-27 用户在数据工单页、审核页各指出一次)', () => {
|
||||
for (const v of manifest.assets.viewTemplates) {
|
||||
expect(v.html, v.name).not.toContain('class="thd"');
|
||||
for (const th of v.html.match(/<th[^>]*>[^<]*<\/th>/g) ?? []) expect(th, `${v.name} th`).not.toMatch(/[a-z]_[a-z]/);
|
||||
for (const td of v.html.match(/<td class="cust">[^<]*<\/td>/g) ?? []) expect(td, `${v.name} 字段格`).not.toMatch(/[a-z]_[a-z]/);
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user