test: align fixtures with image tools and enabled browser defaults
Cross-platform packages / Validate source (push) Canceled after 0s
Cross-platform packages / Authorize desktop packaging (push) Canceled after 0s
Cross-platform packages / linux arm64 (push) Canceled after 0s
Cross-platform packages / macos arm64 (push) Canceled after 0s
Cross-platform packages / windows arm64 (push) Canceled after 0s
Cross-platform packages / linux x64 (push) Canceled after 0s
Cross-platform packages / macos x64 (push) Canceled after 0s
Cross-platform packages / windows x64 (push) Canceled after 0s
Cross-platform packages / Publish GitHub and OSS release (push) Canceled after 0s

Isolate Obsidian tests from the default browser capability, check the additional image-tool card, and center native overlay click targets below the frosted header. Retain existing permissions, identity, hit-testing and keyboard assertions; preserve unrelated uncommitted work.
This commit is contained in:
mesalogo
2026-10-02 11:53:21 +08:00
parent 20317c21b5
commit 5368e0ecf4
4 changed files with 23 additions and 6 deletions
+2
View File
@@ -9319,6 +9319,8 @@ describe('registerIpcHandlers agent terminal state', () => {
{ isAvailable: () => true, encrypt: (value) => Buffer.from(value), decrypt: (value) => value.toString() }
)
const settings = { vaultPath: join(root, 'Saved Vault') }
// This harness exercises Obsidian grants and does not install a browser service.
await capabilities.setBuiltinMcpServerEnabled('builtin-browser', false)
await capabilities.updateObsidianSettings(settings)
if (enabled) await capabilities.setBuiltinMcpServerEnabled('obsidian', true)
if (!assigned) await capabilities.setBuiltinMcpServerAssignments('obsidian', ['continue'])
+7 -3
View File
@@ -6042,10 +6042,14 @@ describe('SettingsPanel runtime files', () => {
screen.getAllByRole('button', {
name: /^(?:展开|收起)服务器 /u
})
).toHaveLength(builtinMcpServers.length)
for (const server of builtinMcpServers) {
).toHaveLength(builtinMcpServers.length + 1)
const serverNames = [
...builtinMcpServers.map(server => server.name),
'图片生成与编辑'
]
for (const serverName of serverNames) {
expect(screen.getByRole('button', {
name: name => name === `展开服务器 ${server.name}` || name === `收起服务器 ${server.name}`
name: name => name === `展开服务器 ${serverName}` || name === `收起服务器 ${serverName}`
})).toBeInTheDocument()
}
expect(