You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
test: update PdfEditor tests for event-driven placement detection
Replace obsolete polling-based tests with new tests for the event relay pattern:
- Remove: 'schedules a deferred completion check after a placement interaction'
- Remove: 'emits adding-ended when object count increases after adding mode starts'
- Remove: 'emits adding-ended when adding mode finishes without object delta'
- Remove: 'keeps waiting while adding mode is active and count has not changed'
- Remove: 'ignores completion checks when no add session is pending'
- Remove: 'RULE: document listener lifecycle' test suite
Add: 'RULE: pdf-elements event relay' test suite with:
- 'relays pdf-elements:adding-ended event to pdf-editor:adding-ended'
- 'relays cancelled event with reason'
Update type definition PdfEditorVm:
- Remove: checkSignerAdded, scheduleSignerAddedCheck
- Add: handleAddingEnded(event: Event)
All 60 PdfEditor tests now pass with event-driven model.
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
0 commit comments