Fix: tweak doc detail component behavior while awaiting metadata (#5546)

This commit is contained in:
shamoon
2024-01-25 13:22:03 -08:00
committed by GitHub
parent 1e4d284b30
commit 6fb4daf03e
3 changed files with 37 additions and 33 deletions

View File

@@ -681,6 +681,7 @@ describe('DocumentDetailComponent', () => {
it('should support Enter key in password field', () => {
initNormally()
component.metadata = { has_archive_version: true }
component.onError({ name: 'PasswordException' }) // normally dispatched by pdf viewer
fixture.detectChanges()
expect(component.password).toBeUndefined()