feat: a user may have more than one profile, and may do what any of them may (Marcus, 2026-11-26)
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 8m1s
Build and deploy / Secret scan and release gate (push) Successful in 8s
Build and deploy / Publish images (push) Successful in 1m32s
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 8m1s
Build and deploy / Secret scan and release gate (push) Successful in 8s
Build and deploy / Publish images (push) Successful in 1m32s
operators.roles holds every profile, the main one first; permissions, moves, the column order and the machine question are the sum. The operator's machine rules apply only to the moves Operador alone allows, so an Operador who is also Revisor releases any sheet (D-29 does not block, Marcus). Usuários gets "Outros perfis" chips next to the main profile. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -372,6 +372,14 @@ try{
|
||||
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');
|
||||
// More than one profile (Marcus, 2026-11-26): the form offers the others as chips.
|
||||
await kanban.eval('userForm()');
|
||||
await waitFor(()=>kanban.eval(`[...document.querySelectorAll('.fld > span')].some(s=>s.textContent==='Outros perfis')
|
||||
&& document.querySelectorAll('.fopts .fopt').length>=8`),'user form with other profiles');
|
||||
await kanban.eval(`document.querySelector('.fopts .fopt').click()`);
|
||||
assert.equal(await kanban.eval(`document.querySelector('.fopts .fopt').getAttribute('aria-pressed')`),'true');
|
||||
await kanban.eval(`[...document.querySelectorAll('.modal .dfoot button')].find(b=>b.textContent==='Cancelar').click()`);
|
||||
await waitFor(()=>kanban.eval(`!document.querySelector('.modal')`),'user form closed');
|
||||
// Pagamentos and Integrações live in their own file now: both lists still render.
|
||||
await kanban.click('[data-tab="payments"]');
|
||||
await waitFor(()=>kanban.eval(`document.querySelector('#payments').children.length>0`),'Pagamentos tab');
|
||||
|
||||
Reference in New Issue
Block a user