mirror of
https://github.com/johannesjo/super-productivity.git
synced 2026-07-30 11:10:04 +00:00
test(tasks): harden notes focus timing spec
This commit is contained in:
parent
b7839e9615
commit
c08832c9dc
1 changed files with 3 additions and 1 deletions
|
|
@ -410,7 +410,9 @@ describe('TaskDetailPanelComponent notes target does not auto-edit', () => {
|
|||
const focusItemSpy = spyOn(component, 'focusItem');
|
||||
|
||||
fixture.detectChanges(); // ngAfterViewInit subscribes; target emits after delay(50)
|
||||
tick(50);
|
||||
// Advance beyond the delay instead of relying on tasks scheduled for the
|
||||
// exact same virtual timestamp.
|
||||
tick(100);
|
||||
|
||||
// The notes section is focused...
|
||||
expect(focusItemSpy).toHaveBeenCalledWith(noteItem);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue