mirror of
https://github.com/stablyai/orca.git
synced 2026-09-23 08:02:31 +00:00
test(skills): pin the stale-record remedy to the row that hands its name through
This commit is contained in:
@@ -423,6 +423,25 @@ describe('SkillFreshnessUpdateDialog', () => {
|
||||
)
|
||||
})
|
||||
|
||||
it('names the skill in the stale-record remedy so the command is runnable as-is', async () => {
|
||||
// Why: the reinstall advice only fires when the row hands its group name through
|
||||
// to skippedReason — dropping that argument silently degrades every stale-record
|
||||
// row to the generic sentence with no command to run.
|
||||
mocks.inventory = {
|
||||
schemaVersion: 1,
|
||||
installations: [placement('orchestration')],
|
||||
eligibleUpdateNames: [],
|
||||
scanIssues: [],
|
||||
scannedAt: 3
|
||||
}
|
||||
await renderDialog()
|
||||
await openViaRequest()
|
||||
|
||||
expect(container?.textContent).toContain(
|
||||
'npx skills add https://github.com/stablyai/orca --skill orchestration --global'
|
||||
)
|
||||
})
|
||||
|
||||
it('stays coherent while an idle re-scan is in flight', async () => {
|
||||
await renderDialog()
|
||||
await openViaRequest()
|
||||
|
||||
Reference in New Issue
Block a user