mirror of
https://github.com/mudler/LocalAI.git
synced 2026-04-01 05:36:49 -04:00
* feat(gallery): Switch to expandable box instead of pop-over and display model files Signed-off-by: Richard Palethorpe <io@richiejp.com> * feat(ui, backends): Add individual backend logging Signed-off-by: Richard Palethorpe <io@richiejp.com> * fix(ui): Set the context settings from the model config Signed-off-by: Richard Palethorpe <io@richiejp.com> --------- Signed-off-by: Richard Palethorpe <io@richiejp.com>
30 lines
1.0 KiB
JavaScript
30 lines
1.0 KiB
JavaScript
import { test, expect } from '@playwright/test'
|
|
|
|
test.describe('Manage Page - Backend Logs Link', () => {
|
|
test('models table shows terminal icon for logs', async ({ page }) => {
|
|
await page.goto('/app/manage')
|
|
// Wait for models to load
|
|
await expect(page.locator('.table')).toBeVisible({ timeout: 10_000 })
|
|
|
|
// Check for terminal icon (backend logs link)
|
|
const terminalIcon = page.locator('a[title="Backend logs"] i.fa-terminal')
|
|
await expect(terminalIcon.first()).toBeVisible()
|
|
})
|
|
|
|
test('terminal icon links to backend-logs page', async ({ page }) => {
|
|
await page.goto('/app/manage')
|
|
await expect(page.locator('.table')).toBeVisible({ timeout: 10_000 })
|
|
|
|
const logsLink = page.locator('a[title="Backend logs"]').first()
|
|
await expect(logsLink).toBeVisible()
|
|
|
|
// Link uses href="#" with onClick for navigation
|
|
const href = await logsLink.getAttribute('href')
|
|
expect(href).toBe('#')
|
|
|
|
// Click and verify navigation
|
|
await logsLink.click()
|
|
await expect(page).toHaveURL(/\/app\/backend-logs\//)
|
|
})
|
|
})
|