Another page
)); await act(async () => { finish(); await flush(); }); expect(submitted).not.toHaveBeenCalled(); expect(container.textContent).toBe("Another page"); }); test("a dialog its owner closed during the save can be dismissed again after reopening", async () => { // As FormDialog: closing unmounts the form while the overlay stays mounted. // The owner closes the confirm and then awaits a refresh (Secrets, Disconnect). let finish!: () => void; let overlay!: ReturnTypeAgents here stop using its items.