mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-09 00:05:21 +01:00
Enhancement: improve layout for custom fields dropdown (#6362)
This commit is contained in:
parent
39b57f695a
commit
2de9d1b7ae
6 changed files with 544 additions and 259 deletions
|
|
@ -945,9 +945,9 @@ describe('DocumentDetailComponent', () => {
|
|||
fixture.detectChanges()
|
||||
expect(component.document.custom_fields).toHaveLength(initialLength - 1)
|
||||
expect(component.customFieldFormFields).toHaveLength(initialLength - 1)
|
||||
expect(fixture.debugElement.nativeElement.textContent).not.toContain(
|
||||
'Field 1'
|
||||
)
|
||||
expect(
|
||||
fixture.debugElement.query(By.css('form')).nativeElement.textContent
|
||||
).not.toContain('Field 1')
|
||||
const updateSpy = jest.spyOn(documentService, 'update')
|
||||
component.save(true)
|
||||
expect(updateSpy.mock.lastCall[0].custom_fields).toHaveLength(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue