- Relay UI: user-facing TensorZero strings -> Relay; bug-report links point to the Relay operator; API Keys card description; tests updated to match - Vend admin/console, Turnstile admin: load failures render as red role=alert error state instead of muted empty state - Rithub web: capitalized brand in title/header/footer/sign-in - README: complete, current Apps table with console locations Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
41 lines
1.2 KiB
TypeScript
41 lines
1.2 KiB
TypeScript
import { test, expect } from "@playwright/test";
|
|
|
|
test("should show the home page", async ({ page }) => {
|
|
await page.goto("/");
|
|
await expect(page.getByText("Ask a question")).toBeVisible();
|
|
|
|
// Assert that "error" is not in the page
|
|
await expect(page.getByText("error", { exact: false })).not.toBeVisible();
|
|
});
|
|
|
|
test("@base-path should check the health endpoint with the correct base path", async ({
|
|
page,
|
|
}) => {
|
|
await page.goto("/");
|
|
await expect(page.getByText("Relay Gateway")).toBeVisible();
|
|
});
|
|
|
|
test("should show 22 functions in the functions badge", async ({ page }) => {
|
|
await page.goto("/");
|
|
|
|
// Find the functions card specifically by looking for the card that contains both "Functions" title and description
|
|
const functionsCard = page.locator(".block").filter({
|
|
has: page.locator('h3:has-text("Functions")'),
|
|
hasText: "22 functions",
|
|
});
|
|
|
|
await expect(functionsCard).toBeVisible();
|
|
});
|
|
|
|
test("should show the models badge", async ({ page }) => {
|
|
await page.goto("/");
|
|
|
|
// Find the models card
|
|
const modelsCard = page.locator(".block").filter({
|
|
has: page.locator('h3:has-text("Models")'),
|
|
hasText: "models used",
|
|
});
|
|
|
|
await expect(modelsCard).toBeVisible();
|
|
});
|