test: the D-13 check waits for the PDF sheet's ink check before changing product
All checks were successful
Build and deploy / Validate source (push) Successful in 4s
Build and deploy / Integration suite on a real stack (push) Successful in 3m31s
Build and deploy / Secret scan and release gate (push) Successful in 5s
Build and deploy / Publish images (push) Successful in 1m0s

The check still running repainted the list after the switch to loose
artwork, so the next step found no size field (CI run 206).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Cauê Faleiros
2026-10-27 12:41:46 -03:00
parent c45e5f732b
commit babd9e327c

View File

@@ -381,7 +381,8 @@ try{
// A ".cdr" that is a PDF (D-13) is renamed and measured as a PDF, not handled by hand.
await click('#bVoltar');await click('[data-modo="file"]');
await evaluate(`sel([${pdfFile(pdfData(),'folha.cdr')}])`);
await waitFor(()=>evaluate(`folhas.length===1 && !!(folhas[0].med || folhas[0].measurementError)`),'renamed PDF measured');
// Measured, and its ink check finished: a check still running repaints the list after the mode below changes.
await waitFor(()=>evaluate(`folhas.length===1 && !!(folhas[0].med || folhas[0].measurementError) && folhas[0].pct==null`),'renamed PDF measured');
assert.deepEqual(await evaluate(`({name:folhas[0].f.name,measured:!!folhas[0].med,manual:folhaManual()})`),
{name:'folha.pdf',measured:true,manual:false});
await click('#bVoltar');await click('[data-modo="avulsa"]');