fix(ci): stop writing dialog close refs during render

eslint-plugin-react-hooks forbids updating ref.current in render, which failed staging lint after the compact rectification board landed.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Jesse_Chen
2026-08-20 16:20:39 +08:00
co-authored by Cursor
parent fb0df7f62f
commit dbbcb71b6a
3 changed files with 21 additions and 4 deletions
@@ -363,6 +363,9 @@ test("the natal house table is a live board beside the chat, not a message", ()
assert.match(board, /aria-live="polite"/);
assert.match(board, /groupWindowTransitions/);
assert.match(board, /<dialog/);
assert.doesNotMatch(board, /onCloseRef\.current = onClose/);
assert.match(board, /node\.addEventListener\("close", handleClose\)/);
assert.match(board, /}, \[compact, onClose\]\);/);
assert.match(chat, /RectificationBoardPeek/);
assert.match(houseTable, /当前本命宫位/);
assert.match(houseTable, /补充经历后会按新线索重算/);