Fixhancement: more log viewer improvements (#11426)

This commit is contained in:
shamoon
2025-11-21 15:52:12 -08:00
committed by GitHub
parent a96db50b0a
commit 93338a0a82
5 changed files with 64 additions and 26 deletions

View File

@@ -110,4 +110,11 @@ describe('LogsComponent', () => {
jest.advanceTimersByTime(1)
expect(reloadSpy).toHaveBeenCalledTimes(initialCalls + 1)
})
it('should update jump to bottom visibility on scroll', () => {
component.showJumpToBottom = false
jest.spyOn(component as any, 'isNearBottom').mockReturnValue(false)
component.onScroll()
expect(component.showJumpToBottom).toBe(true)
})
})