mirror of
https://github.com/Shik3i/KoalaSync.git
synced 2026-09-03 22:45:21 +00:00
fix(sync): harden terminal state races
This commit is contained in:
@@ -118,6 +118,8 @@ describe('target tab lifecycle', () => {
|
||||
expect(clearSource).toContain('resetUserSelectionState()');
|
||||
expect(clearSource).toContain('deactivateTargetTab(previousTabId, previousContentTarget)');
|
||||
expect(clearSource).toContain('selectedTabId: null');
|
||||
expect(clearSource.indexOf('selectedTabId: null'))
|
||||
.toBeLessThan(clearSource.indexOf('await Promise.all(cleanupTasks)'));
|
||||
expect(clearSource).toContain("type: 'TARGET_TAB_CLEARED'");
|
||||
expect(popupSource).toContain("refreshTargetAccessState({ autoSelectMatch: false })");
|
||||
expect(popupSource).toContain('if (autoSelectMatch && matchOpt && elements.targetTab.options.length > 1)');
|
||||
|
||||
Reference in New Issue
Block a user