fix: align ai agent permission modes
This commit is contained in:
@@ -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(
|
||||
|
||||
@@ -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()} />)
|
||||
|
||||
@@ -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' })
|
||||
|
||||
Reference in New Issue
Block a user