The all-in-one local AI studio for your desktop: chat, image and video generation and a coding agent in one free, open source app. Windows and Linux. No Docker, no terminal, no cloud required.
TypeScript agentai-chatai-studioall-in-onecoding-agentdesktop-appfluximage-generationlinuxllmlocal-ailocal-llmopen-sourceprivacyself-hostedstable-diffusionuncensoreduncensored-aivideo-generationwindows
// @vitest-environment jsdom
import { createElement } from 'react'
import { afterEach, describe, expect, it, vi } from 'vitest'
import { cleanup, render, screen } from '@testing-library/react'
import { AgentWorkspaceDialog } from '../AgentWorkspaceDialog'
afterEach(cleanup)
describe('workspace security explanation', () => {
it('explains the boundary before a workspace is selected', () => {
render(createElement(AgentWorkspaceDialog, {
open: true, conversationId: 'security-copy', onChoose: vi.fn(), onClose: vi.fn(),
}))
const note = screen.getByTestId('workspace-security-boundary')
expect(note.textContent).toContain('folder path jail, not a container or virtual machine')
expect(note.textContent).toContain('Commands run on this computer')
expect(screen.queryByText(/Nothing outside it can be touched/)).toBeNull()
})
})