feat(web): la cuenta elegida completa la descripción de la línea de servicio y elegir el socio agrega una línea

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
GeorgeandClaude Sonnet 5.5 committed 2026-10-19 12:28:56 -05:00
1 parent 2e74bccd65
commit 773dd7ff6a
4 files changed
+36 -2

No files matched your search

@@ -210,6 +210,15 @@ describe('DocumentFormPage', () => {
expect(navigate).toHaveBeenCalledWith(['..', 99], expect.objectContaining({ state: { created: '1099' } }));
});
it('al elegir el socio de un documento nuevo sin líneas se agrega una línea, y no se repite', async () => {
expect(page().lines()).toEqual([]);
page().onPartner({ CardCode: 'C1', CardName: 'ACME' });
await tick();
expect(page().lines()).toHaveLength(1);
page().onPartner({ CardCode: 'C2', CardName: 'OTRO' });
expect(page().lines()).toHaveLength(1);
});
describe('tipo Servicio', () => {
const headers = () => [...el().querySelectorAll('.lines-head th, table.grid thead th')].map((t) => t.textContent?.trim());