refactor: the Usuários tab, machines and machine sheet in web/kanban-users.js
A pure move of kanban.js's Machines and users section (with the account menu, theme and filter wiring that sat inside it), byte-identical, loaded right after kanban-numbers.js (Critical Corrections 7, third step). The browser test opens Usuários so a missing name fails it. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -344,6 +344,11 @@ 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');
|
||||
// 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');
|
||||
|
||||
Reference in New Issue
Block a user