From b58c221e1640a16da82abfb1e112c172e83800dc Mon Sep 17 00:00:00 2001 From: t8y2 Date: Thu, 6 Aug 2026 00:39:05 +0800 Subject: [PATCH] =?UTF-8?q?test(sidebar):=20=E5=90=8C=E6=AD=A5=20openObjec?= =?UTF-8?q?tSourceDialog=20=E6=AD=A3=E5=88=99=E5=88=B0=20editableSource?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/app-tests/sidebarContextMenuHost.test.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/app-tests/sidebarContextMenuHost.test.ts b/packages/app-tests/sidebarContextMenuHost.test.ts index dffc9e86c..a2223c56d 100644 --- a/packages/app-tests/sidebarContextMenuHost.test.ts +++ b/packages/app-tests/sidebarContextMenuHost.test.ts @@ -64,9 +64,9 @@ test("query-tab object source opens clean isolated tabs and honors backend edita const runtimeHost = readFileSync("apps/desktop/src/components/sidebar/SidebarTreeRuntimeHost.vue", "utf8"); const openObjectSourceBody = functionBody(runtimeHost, "openObjectSourceDialog"); - assert.match(openObjectSourceBody, /createTab\(connectionId, database, `Source - \$\{node\.label\}`, "query", schema, result\.source, node\.catalog, \{ forceNew: true \}\)/); - assert.match(openObjectSourceBody, /result\.editable !== false/); - assert.match(openObjectSourceBody, /!\["SEQUENCE", "TRIGGER", "TYPE", "TYPE_BODY"\]\.includes\(objectType\)/); + assert.match(openObjectSourceBody, /createTab\(connectionId, database, `Source - \$\{node\.label\}`, "query", schema, editableSource, node\.catalog, \{ forceNew: true \}\)/); + assert.match(openObjectSourceBody, /raw\.editable !== false/); + assert.match(openObjectSourceBody, /!\["SEQUENCE", "TRIGGER", "TYPE", "TYPE_BODY"\]\.includes\(resolvedType\)/); assert.match(openObjectSourceBody, /signature: node\.signature/); assert.doesNotMatch(openObjectSourceBody, /queryStore\.updateSql/); });