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

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

No files matched your search

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