Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions tests/native-ui-lifecycle.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 () => {
Expand Down
Loading