mirror of
https://github.com/fawney19/Aether.git
synced 2026-10-09 18:59:50 +08:00
fix(frontend): hide pricing source from model list
This commit is contained in:
@@ -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 () => {
|
||||
|
||||
Reference in New Issue
Block a user