diff --git a/activities/part-substitution-assessment/__tests__/activity.test.ts b/activities/part-substitution-assessment/__tests__/activity.test.ts index f55816b..3ed2df9 100644 --- a/activities/part-substitution-assessment/__tests__/activity.test.ts +++ b/activities/part-substitution-assessment/__tests__/activity.test.ts @@ -364,6 +364,9 @@ describe('报告模版:编辑面与只读面各就各位', () => { it('落账确认只读:没有任何 data-edit / data-col(差异审核已按 spec §4.4 变为可就地编辑,断言见「件②」组)', () => { expect(viewHtml('landing-confirm')).not.toContain('data-edit='); expect(viewHtml('landing-confirm')).not.toContain('data-col='); + /* 编辑闸的外壳也不许有 —— 理由见下面「全只读」那条的注释(`data-edit=` 这个子串照不到它们) */ + expect(viewHtml('landing-confirm')).not.toContain('data-edit-open='); + expect(viewHtml('landing-confirm')).not.toContain('data-edit-add='); }); it('每个可编辑格子的 data-col 都在对应台账对象的声明里(input-supplement 一屏三张表,三张台账对象的声明并起来看;difference-review 一张表)', () => { @@ -567,10 +570,22 @@ describe('件③ 落账确认', () => { .find((s) => s.item === 'T_release')?.view).toBe('landing-confirm'); }); - it('**全只读** —— 签之前只核对,不改', () => { + /* + * **`data-edit=` 这个子串照不到编辑闸的外壳**(2026-08-29 评审自拟变异逮到的盲点): + * `editGate()` / `addrow()` 产出的是 `data-edit-open=` / `-cancel=` / `-save=` / `-for=` / + * `-add=` / `-del=` —— `edit` 后面跟的是连字符,**永远凑不出 `data-edit=`**。 + * 实测:往这份件里插一个孤立的 `