fix(h5): relax capture angles and annotate acne marks

This commit is contained in:
xsl
2026-10-15 19:55:21 +08:00
parent 757b96dfad
commit 482fb4280d
9 changed files with 53 additions and 36 deletions
+2 -2
View File
@@ -48,8 +48,8 @@ try{
const r=e.getBoundingClientRect();return{above:r.top-e.previousElementSibling.getBoundingClientRect().bottom,below:e.nextElementSibling.getBoundingClientRect().top-r.bottom};
})};
});
assert(Math.abs(spacing.top-spacing.u*13*1.3)<.1,'bottom heading top whitespace increased 30%');
assert(Math.abs(spacing.bottom-spacing.u*8.583333*1.3)<.1,'bottom heading bottom whitespace increased 30%');
assert(Math.abs(spacing.top-spacing.u*18)<.1,'bottom heading top whitespace matches dimension headings');
assert(Math.abs(spacing.bottom-spacing.u*18)<.1,'bottom heading bottom whitespace matches dimension headings');
for(const d of spacing.dimensions){assert(Math.abs(d.above-d.below)<.1,'dimension heading whitespace symmetric');assert(Math.abs(d.above-spacing.u*18)<.1,'all dimension headings use same gap');}
const divider=await p.locator('.product-section-heading').evaluate(e=>{const s=getComputedStyle(e,'::before');return{width:s.borderTopWidth,color:s.borderTopColor,left:s.left,right:s.right};});
assert.equal(divider.width,'1px');assert.equal(divider.color,'rgb(221, 221, 221)');assert.equal(divider.left,'0px');assert.equal(divider.right,'0px');