fix(product): restore HoloLake world entry hierarchy
This commit is contained in:
parent
da26f27e35
commit
3ff80d583a
6 changed files with 105 additions and 33 deletions
|
|
@ -762,7 +762,7 @@ describe('App', () => {
|
|||
})
|
||||
})
|
||||
|
||||
it('shows the external AI setup dialog from the menu when AI onboarding is active', async () => {
|
||||
it('keeps external AI setup available from the menu without making it startup', async () => {
|
||||
localStorage.removeItem(AI_AGENTS_ONBOARDING_DISMISSED_STORAGE_NAME)
|
||||
localStorage.removeItem(CLAUDE_CODE_ONBOARDING_DISMISSED_STORAGE_NAME)
|
||||
mockCommandResults.get_ai_agents_status = {
|
||||
|
|
@ -777,8 +777,9 @@ describe('App', () => {
|
|||
render(<App />)
|
||||
|
||||
await waitFor(() => {
|
||||
expect(screen.getByText('AI is ready')).toBeInTheDocument()
|
||||
expect(screen.getByText('All Notes')).toBeInTheDocument()
|
||||
}, { timeout: SLOW_APP_READY_TIMEOUT_MS })
|
||||
expect(screen.queryByText('AI is ready')).not.toBeInTheDocument()
|
||||
|
||||
await waitFor(() => {
|
||||
expect(typeof window.__laputaTest?.dispatchBrowserMenuCommand).toBe('function')
|
||||
|
|
@ -792,7 +793,6 @@ describe('App', () => {
|
|||
expect(screen.getByText('Manage External AI Tools')).toBeInTheDocument()
|
||||
})
|
||||
expect(screen.getByTestId('mcp-setup-dialog')).toBeInTheDocument()
|
||||
expect(screen.queryByText('AI is ready')).not.toBeInTheDocument()
|
||||
})
|
||||
|
||||
it('routes right-panel AI chat messages to the selected default agent', async () => {
|
||||
|
|
@ -903,7 +903,7 @@ describe('App', () => {
|
|||
expect(screen.getByTestId('welcome-open-folder')).toHaveTextContent('Open existing vault')
|
||||
})
|
||||
|
||||
it('persists an existing vault and shows AI onboarding after first-run open', async () => {
|
||||
it('persists an existing vault without putting optional AI setup in front of HoloLake', async () => {
|
||||
const selectedVaultPath = '/Users/mock/Documents/Work Vault'
|
||||
const saveVaultList = vi.fn()
|
||||
const promptSpy = vi.spyOn(window, 'prompt').mockReturnValue('file:///Users/mock/Documents/Work%20Vault')
|
||||
|
|
@ -947,9 +947,9 @@ describe('App', () => {
|
|||
expect(saveVaultList).toHaveBeenCalledTimes(1)
|
||||
|
||||
await waitFor(() => {
|
||||
expect(screen.getByTestId('ai-agents-onboarding-screen')).toBeInTheDocument()
|
||||
expect(screen.getByText('All Notes')).toBeInTheDocument()
|
||||
}, { timeout: SLOW_APP_READY_TIMEOUT_MS })
|
||||
expect(screen.getByText('AI setup is optional')).toBeInTheDocument()
|
||||
expect(screen.queryByTestId('ai-agents-onboarding-screen')).not.toBeInTheDocument()
|
||||
|
||||
promptSpy.mockRestore()
|
||||
})
|
||||
|
|
|
|||
Loading…
Reference in a new issue