fix(web): la grilla de líneas no aprieta las columnas (ancho mínimo = suma de anchos), el total va tras el impuesto y el proyecto de la cabecera abre su ventana
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
f66ef108cf
commit
f077a61d08
11 files changed
+90
-13
No files matched your search
@@ -422,3 +422,22 @@ describe('LinesGrid', () => {
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
describe('LinesGrid: ancho de la tabla', () => {
|
||||
it('el ancho mínimo es la suma de los anchos de sus columnas, para no apretarlas', async () => {
|
||||
await TestBed.configureTestingModule({
|
||||
imports: [Host],
|
||||
providers: [provideHttpClient(), provideHttpClientTesting()],
|
||||
}).compileComponents();
|
||||
const fixture = TestBed.createComponent(Host);
|
||||
fixture.componentInstance.columns = [
|
||||
{ key: 'A', title: 'A', width: '100px' },
|
||||
{ key: 'B', title: 'B', width: '60px' },
|
||||
{ key: 'C', title: 'C' }, // sin ancho: reserva 220
|
||||
];
|
||||
fixture.detectChanges();
|
||||
await fixture.whenStable();
|
||||
const table = (fixture.nativeElement as HTMLElement).querySelector<HTMLElement>('table.grid')!;
|
||||
expect(parseFloat(table.style.minWidth)).toBe(100 + 60 + 220 + 34 + 30);
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user