mirror of
https://github.com/stablyai/orca.git
synced 2026-11-03 02:27:43 +00:00
Preserve the selected host in explorer watcher ownership (#26616)
This commit is contained in:
@@ -67,6 +67,8 @@ export const ORCAD_EDITOR_WATCH_RECOVERY_E2E_SPEC =
|
||||
'tests/e2e/ssh-orcad-editor-watch-recovery.spec.ts'
|
||||
export const ORCAD_EXPLORER_WATCH_RECOVERY_E2E_SPEC =
|
||||
'tests/e2e/ssh-orcad-explorer-watch-recovery.spec.ts'
|
||||
export const ORCAD_EXPLORER_SELECTED_HOST_E2E_SPEC =
|
||||
'tests/e2e/ssh-orcad-explorer-selected-host.spec.ts'
|
||||
export const DEDICATED_E2E_SPECS = [
|
||||
...DOCKER_SSH_E2E_SPECS,
|
||||
NODE_NETWORK_E2E_SPEC,
|
||||
@@ -86,7 +88,8 @@ export const DEDICATED_E2E_SPECS = [
|
||||
ORCAD_MARKDOWN_LIVE_DOCUMENTS_E2E_SPEC,
|
||||
ORCAD_OPEN_IN_OWNER_E2E_SPEC,
|
||||
ORCAD_EDITOR_WATCH_RECOVERY_E2E_SPEC,
|
||||
ORCAD_EXPLORER_WATCH_RECOVERY_E2E_SPEC
|
||||
ORCAD_EXPLORER_WATCH_RECOVERY_E2E_SPEC,
|
||||
ORCAD_EXPLORER_SELECTED_HOST_E2E_SPEC
|
||||
]
|
||||
const dedicatedSpecs = new Set(DEDICATED_E2E_SPECS)
|
||||
const dockerSpecs = new Set(DOCKER_SSH_E2E_SPECS)
|
||||
@@ -138,7 +141,8 @@ export function classifyE2eJobs(input, sshSourceChanged = 'false') {
|
||||
spec === ORCAD_MARKDOWN_LIVE_DOCUMENTS_E2E_SPEC ||
|
||||
spec === ORCAD_OPEN_IN_OWNER_E2E_SPEC ||
|
||||
spec === ORCAD_EDITOR_WATCH_RECOVERY_E2E_SPEC ||
|
||||
spec === ORCAD_EXPLORER_WATCH_RECOVERY_E2E_SPEC
|
||||
spec === ORCAD_EXPLORER_WATCH_RECOVERY_E2E_SPEC ||
|
||||
spec === ORCAD_EXPLORER_SELECTED_HOST_E2E_SPEC
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -266,3 +266,17 @@ it.each([
|
||||
spec
|
||||
)
|
||||
})
|
||||
|
||||
it.each([
|
||||
'src/renderer/src/components/right-sidebar/useFileExplorerWatch.ts',
|
||||
'src/renderer/src/components/right-sidebar/file-explorer-operation-owner.ts'
|
||||
])('routes %s to the template-building selected-host explorer lane', (file) => {
|
||||
const spec = 'tests/e2e/ssh-orcad-explorer-selected-host.spec.ts'
|
||||
expect(selectPrE2eSpecs([file])).toContain(spec)
|
||||
expect(classify([spec])).toEqual({ e2e_run_changed: false, e2e_needs_build: true })
|
||||
const job = workflow.jobs['orcad-auto-convert-docker']
|
||||
expect(job.if).toContain(spec)
|
||||
expect(job.steps.find((step) => step.name === 'Convert a relay-era Docker host').run).toContain(
|
||||
spec
|
||||
)
|
||||
})
|
||||
|
||||
@@ -67,6 +67,14 @@ export const PR_E2E_SOURCE_ROUTES = [
|
||||
file
|
||||
)
|
||||
},
|
||||
{
|
||||
id: 'ssh.orcad-explorer-selected-host',
|
||||
specs: ['tests/e2e/ssh-orcad-explorer-selected-host.spec.ts'],
|
||||
matches: (file) =>
|
||||
isProductSource(file) &&
|
||||
(file === 'src/renderer/src/components/right-sidebar/useFileExplorerWatch.ts' ||
|
||||
file === 'src/renderer/src/components/right-sidebar/file-explorer-operation-owner.ts')
|
||||
},
|
||||
{
|
||||
id: 'serve.orcad-mode-switch',
|
||||
specs: ['tests/e2e/orcad-serve-mode-switch.spec.ts'],
|
||||
|
||||
Reference in New Issue
Block a user