From babd9e327c2539b38f4ae7270bdcf2f43ab9434e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cau=C3=AA=20Faleiros?= Date: Tue, 27 Oct 2026 12:41:46 -0300 Subject: [PATCH] test: the D-13 check waits for the PDF sheet's ink check before changing product 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 --- tests/artwork_browser_test.mjs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/artwork_browser_test.mjs b/tests/artwork_browser_test.mjs index 84ede71..e8e995f 100644 --- a/tests/artwork_browser_test.mjs +++ b/tests/artwork_browser_test.mjs @@ -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"]');