mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-23 03:21:21 +00:00
Enhancement: improved loading visuals (#8435)
This commit is contained in:
@@ -35,6 +35,7 @@ describe('WidgetFrameComponent', () => {
|
||||
|
||||
fixture = TestBed.createComponent(WidgetFrameComponent)
|
||||
component = fixture.componentInstance
|
||||
jest.useFakeTimers()
|
||||
|
||||
fixture.detectChanges()
|
||||
})
|
||||
@@ -51,4 +52,10 @@ describe('WidgetFrameComponent', () => {
|
||||
fixture.detectChanges()
|
||||
expect(fixture.debugElement.query(By.css('.spinner-border'))).not.toBeNull()
|
||||
})
|
||||
|
||||
it('should reveal', () => {
|
||||
expect(component.reveal).toBeFalsy()
|
||||
jest.advanceTimersByTime(100)
|
||||
expect(component.reveal).toBeTruthy()
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user