From 7ca2dd7a0bb1495a2e9733da61cbe75ec298644e Mon Sep 17 00:00:00 2001 From: rdlabo Date: Fri, 20 Nov 2026 10:03:44 +0900 Subject: [PATCH] Verify that both Vertical Bars handles share runtime teardown --- tests/native-ui-lifecycle.spec.ts | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/tests/native-ui-lifecycle.spec.ts b/tests/native-ui-lifecycle.spec.ts index b682ed7..e8ab859 100644 --- a/tests/native-ui-lifecycle.spec.ts +++ b/tests/native-ui-lifecycle.spec.ts @@ -58,9 +58,13 @@ test('a new activation survives the previous runtime finishing its destroy', asy test('standalone Vertical Bars forwards popover opt-in into the shared runtime', async () => { const handle = await enableVerticalControlArea({ ionic: { verticalBars: { popover: true } } }); - await expect(enableNativeUI({ controls: 'verticalOnly', ionic: { verticalBars: { popover: true } } })).resolves.toBeDefined(); - await expect(enableVerticalControlArea()).rejects.toThrow('different controls'); - await handle.destroy(); + const shared = await enableNativeUI({ controls: 'verticalOnly', ionic: { verticalBars: { popover: true } } }); + try { + await expect(enableVerticalControlArea()).rejects.toThrow('different controls'); + } finally { + await handle.destroy(); + } + expect(shared.getStatus().state).toBe('stopped'); }); test('undefined optional controls preserve the same defaults as omitted settings', async () => {