test(cua): reject activation after controller disposal

This commit is contained in:
creatixchu committed 2026-10-20 14:52:30 +08:00
1 parent 98badd548a
commit 254aef2e2d
1 file changed
+1
@@ -124,6 +124,7 @@ it('ignores stale toast completion after the permission UI is disposed', async (
await f.controller.dispose()
const before = f.controller.state.getSnapshot()
f.face.dismissToast()
f.face.setActive(true)
f.face.refresh()
expect(f.controller.state.getSnapshot()).toBe(before)
})