test: align assertions with HoloLake branding

This commit is contained in:
冰朔 2026-07-22 17:44:38 +08:00
parent 3e1b0bd80f
commit b6db28b78d
7 changed files with 14 additions and 14 deletions

View File

@ -329,7 +329,7 @@ describe('SettingsPanel', () => {
const confirmation = within(teamRow).getByTestId('settings-workspace-remove-confirm-team')
expect(screen.queryByTestId('confirm-delete-dialog')).not.toBeInTheDocument()
expect(confirmation).toHaveTextContent('Remove vault?')
expect(confirmation).toHaveTextContent("This removes Team Vault from Tolaria's vault list. Files on disk are not deleted.")
expect(confirmation).toHaveTextContent("This removes Team Vault from HoloLake Era's vault list. Files on disk are not deleted.")
fireEvent.click(within(confirmation).getByRole('button', { name: 'Cancel' }))
expect(onRemoveVault).not.toHaveBeenCalled()

View File

@ -82,7 +82,7 @@ describe('UpdateBanner', () => {
}))
expect(screen.getByTestId('update-banner')).toBeTruthy()
expect(screen.getByText(/Tolaria Alpha 2026\.4\.16\.3/)).toBeTruthy()
expect(screen.getByText(/HoloLake Era Alpha 2026\.4\.16\.3/)).toBeTruthy()
expect(screen.getByText(/is available/)).toBeTruthy()
expect(screen.getByTestId('update-now-btn')).toBeTruthy()
expect(screen.getByTestId('update-release-notes')).toBeTruthy()
@ -95,7 +95,7 @@ describe('UpdateBanner', () => {
displayVersion: 'Alpha 2026.4.16.3',
}), makeActions(), 'zh-CN')
expect(screen.getByText(/Tolaria Alpha 2026\.4\.16\.3/)).toBeTruthy()
expect(screen.getByText(/HoloLake Era Alpha 2026\.4\.16\.3/)).toBeTruthy()
expect(screen.getByText(/可用/)).toBeTruthy()
expect(screen.getByTestId('update-release-notes')).toHaveTextContent('发行说明')
expect(screen.getByTestId('update-now-btn')).toHaveTextContent('立即更新')
@ -126,7 +126,7 @@ describe('UpdateBanner', () => {
it('shows progress bar during download', () => {
renderBanner(makeDownloadingStatus())
expect(screen.getByText(/Downloading Tolaria Alpha 2026\.4\.16\.3/)).toBeTruthy()
expect(screen.getByText(/Downloading HoloLake Era Alpha 2026\.4\.16\.3/)).toBeTruthy()
expect(screen.getByText('65%')).toBeTruthy()
const progressBar = screen.getByTestId('update-progress')
@ -148,7 +148,7 @@ describe('UpdateBanner', () => {
it('shows restart button when update is ready', () => {
renderBanner(makeReadyStatus())
expect(screen.getByText(/Tolaria 2026\.4\.16/)).toBeTruthy()
expect(screen.getByText(/HoloLake Era 2026\.4\.16/)).toBeTruthy()
expect(screen.getByText(/restart to apply/)).toBeTruthy()
expect(screen.getByTestId('update-restart-btn')).toBeTruthy()
})

View File

@ -88,7 +88,7 @@ describe('useGettingStartedClone', () => {
expect(onSuccess).not.toHaveBeenCalled()
expect(onError).toHaveBeenCalledWith(
'Tolaria needs a restart before macOS can open another folder picker. Restart to apply the downloaded update and try again.',
'HoloLake Era needs a restart before macOS can open another folder picker. Restart to apply the downloaded update and try again.',
)
})
})

View File

@ -169,7 +169,7 @@ describe('useMcpStatus', () => {
name: 'connects external AI tools for the current vault on demand',
overrideKey: 'register_mcp_tools' as const,
overrideValue: 'registered',
toastFragment: 'Tolaria external AI tools connected successfully',
toastFragment: 'HoloLake Era external AI tools connected successfully',
},
{
action: 'connect' as const,
@ -189,7 +189,7 @@ describe('useMcpStatus', () => {
name: 'disconnects external AI tools explicitly',
overrideKey: 'remove_mcp_tools' as const,
overrideValue: 'removed',
toastFragment: 'Tolaria external AI tools disconnected successfully',
toastFragment: 'HoloLake Era external AI tools disconnected successfully',
},
{
action: 'disconnect' as const,
@ -243,14 +243,14 @@ describe('useMcpStatus', () => {
const { expectedSnippet, onToast, writeText } = await copySnippetInBrowser('standard')
expect(writeText).toHaveBeenCalledWith(expectedSnippet)
expect(onToast).toHaveBeenCalledWith('Tolaria MCP config copied to clipboard')
expect(onToast).toHaveBeenCalledWith('HoloLake Era MCP config copied to clipboard')
})
it('copies the OpenCode MCP config snippet to the clipboard', async () => {
const { expectedSnippet, onToast, writeText } = await copySnippetInBrowser('opencode')
expect(writeText).toHaveBeenCalledWith(expectedSnippet)
expect(onToast).toHaveBeenCalledWith('Tolaria MCP config copied to clipboard')
expect(onToast).toHaveBeenCalledWith('HoloLake Era MCP config copied to clipboard')
})
it('uses the native clipboard command inside the Tauri app', async () => {
@ -278,6 +278,6 @@ describe('useMcpStatus', () => {
expect(invoke).toHaveBeenCalledWith('copy_text_to_clipboard', { text: snippet })
expect(writeText).not.toHaveBeenCalled()
expect(onToast).toHaveBeenCalledWith('Tolaria MCP config copied to clipboard')
expect(onToast).toHaveBeenCalledWith('HoloLake Era MCP config copied to clipboard')
})
})

View File

@ -371,7 +371,7 @@ describe('useOnboarding', () => {
})
expect(result.current.error).toBe(
'Tolaria needs a restart before macOS can open another folder picker. Restart to apply the downloaded update and try again.',
'HoloLake Era needs a restart before macOS can open another folder picker. Restart to apply the downloaded update and try again.',
)
expect(result.current.state.status).toBe('welcome')
})

View File

@ -24,7 +24,7 @@ describe('feedbackDiagnostics', () => {
releaseChannel: 'alpha',
})
expect(bundle).toContain('Tolaria sanitized diagnostics')
expect(bundle).toContain('HoloLake Era sanitized diagnostics')
expect(bundle).toContain('Build: b281')
expect(bundle).toContain('Release channel: alpha')
expect(bundle).toContain('[error] Load failed for [redacted-path] with token [redacted-token]')

View File

@ -129,7 +129,7 @@ describe('openAiWorkspaceWindow', () => {
AI_WORKSPACE_WINDOW_LABEL,
expect.objectContaining({
url: expect.stringContaining('vault=%2Ftmp%2Fvault'),
title: 'Tolaria AI',
title: 'HoloLake AI · 光湖人格体工作区',
width: 560,
height: 680,
minWidth: 420,