fix: align ai agent permission modes

This commit is contained in:
lucaronin
2026-04-30 21:01:09 +02:00
parent 4a03f1675e
commit adcaa8a387
20 changed files with 200 additions and 68 deletions

View File

@@ -102,7 +102,7 @@ describe('SettingsPanel', () => {
expect(screen.getByText('设置')).toBeInTheDocument()
expect(screen.queryByText('Settings')).not.toBeInTheDocument()
})
}, 10_000)
it('calls onSave with stable defaults on save', () => {
render(

View File

@@ -103,7 +103,7 @@ describe('StatusBar', () => {
it('build number shows the update tooltip on focus', async () => {
render(<StatusBar noteCount={100} vaultPath="/Users/luca/Laputa" vaults={vaults} onSwitchVault={vi.fn()} buildNumber="b281" onCheckForUpdates={vi.fn()} />)
await expectTooltip(screen.getByRole('button', { name: 'Check for updates' }), 'Check for updates')
})
}, 10_000)
it('does not display branch name', () => {
render(<StatusBar noteCount={100} vaultPath="/Users/luca/Laputa" vaults={vaults} onSwitchVault={vi.fn()} />)

View File

@@ -70,7 +70,7 @@ describe('TypeCustomizePopover', () => {
expect(screen.getByText('Icon')).toBeInTheDocument()
expect(screen.getByText('Template')).toBeInTheDocument()
expect(screen.getByText('Done')).toBeInTheDocument()
})
}, 10_000)
it('can hide the template and Done controls for inline appearance editing', () => {
renderPopover({ showTemplate: false, showDone: false, surface: 'inline' })