chore: 保存 Agent 安全优化前基线
This commit is contained in:
1 parent
08696896f9
commit
ff016347cd
116 files changed
+3858
-2485
No files matched your search
@@ -12,4 +12,13 @@ describe('remote shell close recovery', () => {
|
||||
fireEvent.click(screen.getByRole('button', { name: '重新打开 Shell' }))
|
||||
expect(reopen).toHaveBeenCalledTimes(1)
|
||||
})
|
||||
|
||||
it('local shell exit never mentions the SSH connection', () => {
|
||||
const reopen = vi.fn()
|
||||
render(<ShellClosedOverlay reason="本地 Shell 已退出" idleTimeout={false} isLocal onReopen={reopen} />)
|
||||
|
||||
expect(screen.getByText('Shell 已退出')).toBeVisible()
|
||||
expect(screen.getByText('重新打开 Shell 即可继续使用本地终端')).toBeVisible()
|
||||
expect(screen.queryByText(/SSH 连接仍可用/)).toBeNull()
|
||||
})
|
||||
})
|
||||
Reference in new issue
Block a user