mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-11 17:17:26 +01:00
Fix: delay iframe DOM removal for print in FF
This commit is contained in:
parent
e88816d141
commit
3b75d3271e
2 changed files with 15 additions and 5 deletions
|
|
@ -1489,6 +1489,8 @@ describe('DocumentDetailComponent', () => {
|
|||
mockContentWindow.onafterprint(new Event('afterprint'))
|
||||
}
|
||||
|
||||
tick(500)
|
||||
|
||||
expect(removeChildSpy).toHaveBeenCalledWith(mockIframe)
|
||||
expect(revokeObjectURLSpy).toHaveBeenCalledWith('blob:mock-url')
|
||||
|
||||
|
|
@ -1563,6 +1565,8 @@ describe('DocumentDetailComponent', () => {
|
|||
mockIframe.onload(new Event('load'))
|
||||
}
|
||||
|
||||
tick(500)
|
||||
|
||||
expect(toastSpy).toHaveBeenCalled()
|
||||
expect(removeChildSpy).toHaveBeenCalledWith(mockIframe)
|
||||
expect(revokeObjectURLSpy).toHaveBeenCalledWith('blob:mock-url')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue