Skip to content

armgit / dbx

Public Imported from GitHub
0

25 MB lightweight cross-platform database client for 100+ databases, including MySQL, PostgreSQL, SQLite, Redis, MongoDB, DuckDB, SQL Server, and Dameng. Built-in AI, MCP Server, CLI, desktop and Docker. | 轻量级跨平台数据库管理工具,支持 MySQL、PostgreSQL、SQLite、Redis、MongoDB、达梦等 100+ 数据库,提供桌面端、Docker、CLI、内置 AI 助手和 MCP。

fix(tests): update sidebar paste CI assertions

t8y20efce9e9a94f
diff --git a/packages/app-tests/sidebarContextMenuHost.test.ts b/packages/app-tests/sidebarContextMenuHost.test.ts
index c089efa399..f293f091bc 100644
--- a/packages/app-tests/sidebarContextMenuHost.test.ts
+++ b/packages/app-tests/sidebarContextMenuHost.test.ts
@@ -119,7 +119,7 @@ test("successful tree table paste consumes only the clipboard used to start it",
const confirmPasteTableBody = functionBody(runtimeHost, "confirmPasteTable");
assert.match(confirmPasteTableBody, /const clipboardAtPasteStart = connectionStore\.treeClipboard/);
- assert.match(confirmPasteTableBody, /if \(pasteFeedback\.failedCount === 0\)/);
+ assert.match(confirmPasteTableBody, /if \(pasteFailCount === 0\)/);
assert.match(confirmPasteTableBody, /connectionStore\.treeClipboard === clipboardAtPasteStart/);
assert.match(confirmPasteTableBody, /connectionStore\.treeClipboard = null/);
});
@@ -142,7 +142,7 @@ test("tree table paste consumes the clipboard even if only the object-list refre
assert.match(confirmPasteTableBody, /let refreshFailCount = 0/);
assert.match(confirmPasteTableBody, /pasteFailCount\+\+/);
assert.match(confirmPasteTableBody, /refreshFailCount\+\+/);
- assert.match(confirmPasteTableBody, /if \(pasteFeedback\.failedCount === 0\)[\s\S]*?connectionStore\.treeClipboard = null/);
+ assert.match(confirmPasteTableBody, /if \(pasteFailCount === 0\)[\s\S]*?connectionStore\.treeClipboard = null/);
assert.match(confirmPasteTableBody, /if \(refreshFailCount > 0\)[\s\S]*?pasteTableRefreshFailed/);
});