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.
This commit is contained in:
t8y2 committed 2026-05-25 19:25:38 +08:00
1 parent a15ce1f6c7
commit 25bf3c035e
1 file changed
+6 -1
@@ -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, /if \(tab\.mode === "data"\) \{/);
assert.match(source, /pageLimit = settingsStore\.editorSettings\.pageSize/); 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); assert.doesNotMatch(source, /maxRows: 10000,\s*fetchSize: pageLimit,\s*pageSize: pageLimit/s);
}); });