fix(web): move chat metrics into top-bar information panel
This commit is contained in:
@@ -221,6 +221,20 @@ function panelWith(document_, ...controls) {
|
||||
return panel;
|
||||
}
|
||||
|
||||
test("modal lifecycle cleanup runs once for direct close, closeAll and render-managed disappearance", () => {
|
||||
const {document_,controller}=harness();
|
||||
const closed=[];
|
||||
controller.open("info",panelWith(document_,button(document_,"Close")),{history:false,onClosed:()=>closed.push("info")});
|
||||
assert.equal(controller.close("info"),true);
|
||||
assert.equal(controller.close("info"),false);
|
||||
controller.open("again",panelWith(document_,button(document_,"Close")),{history:false,onClosed:()=>closed.push("again")});
|
||||
controller.closeAll();
|
||||
controller.stage("rendered",panelWith(document_,button(document_,"Close")),{history:false,onClosed:()=>closed.push("rendered")});
|
||||
controller.reconcile();controller.reconcile();
|
||||
assert.deepEqual(closed,["info","again","rendered"]);
|
||||
assert.deepEqual(controller.stackIds(),[]);
|
||||
});
|
||||
|
||||
test("focusable discovery keeps DOM order and excludes every unreachable form", () => {
|
||||
const document_ = new FakeDocument();
|
||||
const panel = new FakeElement("div", document_);
|
||||
|
||||
Reference in New Issue
Block a user