docs: deliver 1.25.6 model capacity display and independent source releases
This commit is contained in:
@@ -42,9 +42,13 @@ try {
|
||||
const file = path.join(root, 'open-budget-390.png'); await page.screenshot({ path: file, fullPage: true }); screenshots.push(file);
|
||||
await dialog.getByRole('button', { name: '模型连接', exact: true }).click();
|
||||
const center = await (await fetch(url + '/api/model-center', { headers: { 'X-Workbench-Token': boot.token, Connection: 'close' } })).json();
|
||||
const connection = center.connections.find(value => value.id !== 'legacy-default' && value.enabled);
|
||||
const connection = center.connections.find(value => value.id === center.selected.id && value.id !== 'legacy-default' && value.enabled)
|
||||
?? center.connections.find(value => value.id !== 'legacy-default' && value.enabled);
|
||||
if (connection) {
|
||||
const card = dialog.locator('.mc-connection').filter({ has: page.getByRole('heading', { name: connection.name, exact: true }) });
|
||||
const cards = dialog.locator('.mc-connections > .mc-connection');
|
||||
await expect(cards).toHaveCount(center.connections.length);
|
||||
const card = cards.nth(center.connections.findIndex(value => value.id === connection.id));
|
||||
await expect(card.getByRole('heading', { name: connection.name, exact: true })).toBeVisible();
|
||||
await card.getByRole('button', { name: '编辑', exact: true }).click();
|
||||
const editor = dialog.getByRole('form', { name: '编辑模型连接', exact: true });
|
||||
await expect(editor.getByLabel('上下文上限', { exact: true })).toHaveCount(0);
|
||||
|
||||
Reference in New Issue
Block a user