Merge branch 'main' into fix-pdf-check

This commit is contained in:
Cauê Faleiros
2026-11-10 11:22:44 -03:00
4 changed files with 340 additions and 330 deletions

View File

@@ -340,6 +340,10 @@ try{
await waitFor(()=>site.eval('window.scrollY===0'),'screenshot scroll position');
await site.screenshot('output/local/site.png');
await kanban.screenshot('output/local/kanban.png');
// Números lives in its own file now: the tab must still load after kanban.js.
await kanban.click('[data-tab="stats"]');
await waitFor(()=>kanban.eval(`document.querySelector('#stats-kpis').children.length>0
&& document.querySelector('#stats-machine-body').children.length>0`),'Números tab and machines by month');
// A guest sees the order paid in this browser; creating an account keeps it.
const portal=await page(siteOrigin+'/conta/pedidos?order='+oid);
await waitFor(async()=> (await portal.text()).includes('Finalizado'),'customer order tracking');