Enhancement: improve layout for custom fields dropdown (#6362)

This commit is contained in:
shamoon
2024-05-01 21:57:18 -07:00
parent 39b57f695a
commit 2de9d1b7ae
6 changed files with 544 additions and 259 deletions

View File

@@ -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(