feat: the customer may accept printing a ready sheet's residue dots (Dropstar's third round, item 5)
All checks were successful
Build and deploy / Validate source (push) Successful in 8s
Build and deploy / Integration suite on a real stack (push) Successful in 3m53s
Build and deploy / Secret scan and release gate (push) Successful in 6s
Build and deploy / Publish images (push) Successful in 1m8s
All checks were successful
Build and deploy / Validate source (push) Successful in 8s
Build and deploy / Integration suite on a real stack (push) Successful in 3m53s
Build and deploy / Secret scan and release gate (push) Successful in 6s
Build and deploy / Publish images (push) Successful in 1m8s
A sheet with dots under 2 mm still stops the order, now with a box under the warning: "Esta arte tem N pontos menores que 2 mm. Estou ciente e aceito imprimir assim — eles podem se perder no recorte." Ticked, the sheet goes on, and the item carries how many dots were accepted (residue_accepted), kept through the review and shown on the Kanban card, order panel and quote. A solid background still stops it, with no box. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -334,6 +334,13 @@ try{
|
||||
await waitFor(()=>evaluate(`$('aoVivo').textContent.includes('ponto de recorte') && itemAtual===null`),'residue stops the order');
|
||||
assert.equal(await evaluate(`$('lista').textContent.includes('Sobrou 1 ponto de recorte na sua folha')`),true);
|
||||
await waitFor(()=>evaluate(`folhas[0].previewSrc.startsWith('data:image/webp')`),'residue circled on the preview');
|
||||
// Unless the customer accepts printing the dot (Dropstar, 2026-10-29): ticked,
|
||||
// the sheet goes on and the item says how many dots were accepted.
|
||||
assert.equal(await evaluate(`$('lista').textContent.includes('Esta arte tem 1 ponto menor que 2 mm. Estou ciente e aceito imprimir assim')`),true);
|
||||
await click('[data-residuo="0"]');
|
||||
await waitFor(()=>evaluate(`itemAtual?.residueAccepted===1 && !$('lista').textContent.includes('Sobrou 1 ponto')`),'accepted residue lets the sheet go on');
|
||||
await click('[data-residuo="0"]');
|
||||
await waitFor(()=>evaluate(`itemAtual===null && $('aoVivo').textContent.includes('ponto de recorte')`),'unticked, the residue stops it again');
|
||||
await evaluate(`folhas=[];pintaFolha()`);
|
||||
await evaluate('sendSheet({fundo:true})');
|
||||
await waitFor(()=>evaluate(`folhas[0]?.an?.fundoChapado===true && itemAtual===null && $('aoVivo').textContent.includes('fundo transparente')`),'solid background stops the order');
|
||||
|
||||
Reference in New Issue
Block a user