Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

934 B
Raw Blame
import { expect, test } from '@playwright/test';

import { bootAuthenticatedPage, waitForAppReady } from '../helpers/core-rpc';

test.describe('Local model runtime route', () => {
  test('redirects the retired local-model-debug route to the Connections LLM tab', async ({
    page,
  }) => {
    await bootAuthenticatedPage(page, 'pw-local-model-runtime');
    // Navigate after the authenticated shell has mounted. Supplying this legacy
    // settings path during bootstrap races its default chat-route restoration.
    await page.goto('/#/settings/local-model-debug');
    await waitForAppReady(page);

    await expect
      .poll(async () => page.evaluate(() => window.location.hash))
      .toContain('/connections');
    const settledHash = await page.evaluate(() => window.location.hash);
    expect(settledHash).not.toContain('local-model-debug');
    await expect(page.getByText('Runtime Status')).toHaveCount(0);
  });
});