Merge branch 'main' into bug-66

This commit is contained in:
Cauê Faleiros
2026-11-11 16:43:33 -03:00
5 changed files with 884 additions and 859 deletions

View File

@@ -344,6 +344,16 @@ try{
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');
// Cotações lives in its own file now: the list and the review panel load too.
await kanban.click('[data-tab="quotes"]');
await waitFor(()=>kanban.eval(`document.querySelector('#quote-filters').children.length>0
&& document.querySelector('#quote-list').children.length>0
&& document.querySelector('#reviews').children.length>0`),'Cotações tab and review panel');
// Usuários, machines and each machine's sheet live in their own file too.
await kanban.click('[data-tab="users"]');
await waitFor(()=>kanban.eval(`document.querySelector('#users-list').children.length>0
&& document.querySelector('#roles-matrix').children.length>0
&& document.querySelector('#machines-list').children.length>0`),'Usuários tab, people, roles and machines');
// 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');