From 25bf3c035e755e32da498cf86f478d81b6a8c0ea Mon Sep 17 00:00:00 2001 From: t8y2 <1156263951@qq.com> Date: Mon, 25 May 2026 19:21:51 +0800 Subject: [PATCH] test: fix pagination page size test after executionOptions refactor The query timeout feature moved clientSessionId to the outer executionOptions object, which broke the single-line regex assertion. Split into individual assertions that track each field independently. --- packages/app-tests/paginationPageSize.test.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/packages/app-tests/paginationPageSize.test.ts b/packages/app-tests/paginationPageSize.test.ts index 8df23c6925..fefd8bed41 100644 --- a/packages/app-tests/paginationPageSize.test.ts +++ b/packages/app-tests/paginationPageSize.test.ts @@ -55,7 +55,12 @@ test("query execution sends the selected page size to agent drivers", () => { assert.match(source, /if \(tab\.mode === "data"\) \{/); assert.match(source, /pageLimit = settingsStore\.editorSettings\.pageSize/); - assert.match(source, /maxRows: pageLimit,\s*fetchSize: pageLimit,\s*pageSize: pageLimit,\s*resultSessionId: options\?\.pagination\?\.sessionId,\s*clientSessionId: tab\.id/s); + assert.match(source, /maxRows: pageLimit/); +assert.match(source, /fetchSize: pageLimit/); +assert.match(source, /pageSize: pageLimit/); +assert.match(source, /resultSessionId: options\?\.pagination\?\.sessionId/); +assert.match(source, /clientSessionId: tab\.id/); +assert.match(source, /timeoutSecs: settingsStore\.editorSettings\.queryTimeoutSecs/); assert.doesNotMatch(source, /maxRows: 10000,\s*fetchSize: pageLimit,\s*pageSize: pageLimit/s); });