feat: Dropstar's 03/11 answers on residue and item 16; wide areas count in the stroke
All checks were successful
Build and deploy / Validate source (push) Successful in 11s
Build and deploy / Integration suite on a real stack (push) Successful in 5m25s
Build and deploy / Secret scan and release gate (push) Successful in 8s
Build and deploy / Publish images (push) Successful in 1m20s
All checks were successful
Build and deploy / Validate source (push) Successful in 11s
Build and deploy / Integration suite on a real stack (push) Successful in 5m25s
Build and deploy / Secret scan and release gate (push) Successful in 8s
Build and deploy / Publish images (push) Successful in 1m20s
- Residue: the acceptance stays on loose artwork only ("arquivo
fracionado"), with their text. A ready sheet with residue goes back,
as the designer cannot clean a closed sheet.
- Item 16, new rule, all three at once: thinnest stroke up to 4 px, at
least 60% of the ink in areas 20 px or wider, at most 10% of the ink in
strokes up to 4 px. One pop-up per file, on ready sheets and loose art,
that does not block: "Imprimir assim mesmo (C1)" (default) or "Quero
subir em dois arquivos". The ready sheet's three options are gone; the
card notes that the customer was warned and printed as C1.
- The stroke reader counts the ink in wide areas with their edges and the
ink in strokes up to 4 px, and areas wider than the measured distance now
add axis samples: two edge pixels no longer make a solid art C1 ("Salmo
91" was C1 at 3 px, now C3). The four test sheets still give 2, 5, 20
and 4 px; the new rule triggers on 4 of the 9 real arts.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -350,13 +350,10 @@ 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');
|
||||
// A ready sheet takes no acceptance (Dropstar, 2026-11-03): the designer
|
||||
// cannot clean a closed sheet, so the dot always sends it back.
|
||||
assert.deepEqual(await evaluate(`({box:!!document.querySelector('[data-residuo]'),
|
||||
text:$('lista').textContent.includes('Estou ciente'),stopped:itemAtual===null})`),{box:false,text:false,stopped:true});
|
||||
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