Skip to content

Commit 24e67f5

Browse files
committed
test: document QwenVL dropdown only reaching the first registered model directory
1 parent 931c8d8 commit 24e67f5

1 file changed

Lines changed: 16 additions & 1 deletion

File tree

src/platform/assets/services/assetService.test.ts

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@ vi.mock('@/stores/modelToNodeStore', () => {
4343
}
4444
const nodeTypeCategories: Record<string, string> = {
4545
CheckpointLoaderSimple: 'checkpoints',
46-
LoraLoader: 'loras'
46+
LoraLoader: 'loras',
47+
AILab_QwenVL: 'LLM/Qwen-VL/Qwen2.5-VL-3B-Instruct'
4748
}
4849
return {
4950
useModelToNodeStore: vi.fn(() => ({
@@ -1171,6 +1172,20 @@ describe(assetService.getAssetsPageForNodeType, () => {
11711172
expect(params.get('offset')).toBe('500')
11721173
expect(params.has('after')).toBe(false)
11731174
})
1175+
1176+
describe('QwenVL model directories', () => {
1177+
it.fails('lists models from every registered QwenVL directory, not just the first one (Qwen3-VL-8B-Instruct is currently unreachable in the dropdown)', async () => {
1178+
fetchApiMock.mockResolvedValueOnce(
1179+
buildAssetListResponse([validAsset({ id: 'qwen3-vl-8b-instruct' })])
1180+
)
1181+
1182+
await assetService.getAssetsPageForNodeType('AILab_QwenVL')
1183+
1184+
const requestedUrl = fetchApiMock.mock.calls[0]?.[0] as string
1185+
const params = new URL(requestedUrl, 'http://localhost').searchParams
1186+
expect(params.get('include_tags')).toContain('Qwen3-VL-8B-Instruct')
1187+
})
1188+
})
11741189
})
11751190

11761191
describe(assetService.getAssetsForNodeType, () => {

0 commit comments

Comments
 (0)