fix(frontend): hide pricing source from model list

This commit is contained in:
elky
2026-09-05 09:56:34 +08:00
parent 856accdced
commit f69b770f5e
2 changed files with 5 additions and 168 deletions
@@ -248,20 +248,20 @@ describe('ModelManagement pricing-source workflow', () => {
})
})
it('renders the new source and selection controls in English', async () => {
it('does not render the pricing source in the model list', async () => {
mountView()
await settle()
setI18nLocale('en-US')
await settle()
expect(document.body.textContent).toContain('Online pricing source')
expect(document.body.textContent).not.toContain('Online pricing source')
expect(document.body.textContent).toContain('Batch manage')
expect(document.body.querySelector(
'[aria-label="Select model Test Model"]',
)).not.toBeNull()
expect(document.body.querySelector(
'[data-testid="model-pricing-source-model-1"]',
)?.getAttribute('aria-label')).toContain('Current source: Old OpenAI label')
)).toBeNull()
})
it('migrates a legacy browser-only source into the model database config', async () => {