test(HEL-771): wait for sample border transition before capture

Co-authored-by: multica-agent <github@multica.ai>
This commit is contained in:
leefer
2026-10-22 07:43:33 +08:00
co-authored by multica-agent
parent af0417e874
commit fb6139d45c
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -217,7 +217,7 @@ try {
await ref.locator(b).evaluate((e,on)=>e.classList.toggle("on",on), state === "selected");
await app.mouse.move(1200,600); await ref.mouse.move(1200,600);
if (state === "hover") { await app.locator(a).hover(); await ref.locator(b).hover(); }
await app.waitForTimeout(150);
await app.waitForTimeout(300);
const name = `${key}-card${i}-${state}`;
results.groups.push({name, theme, width, card:i, state, app:await app.evaluate(MEASURE,a), sample:await ref.evaluate(MEASURE,b)});
await app.locator(a).screenshot({path:path.join(OUT,`${name}-app.png`)});