mirror of
https://github.com/bybrooklyn/alchemist.git
synced 2026-04-18 09:53:33 -04:00
Release v0.2.9: runtime reliability and admin UX refresh
- ship runtime reliability, watcher/scanner hardening, and hardware hot reload - refresh admin/settings UX and add Playwright reliability coverage - standardize frontend workflow on Bun and update deploy/docs
This commit is contained in:
19
web-e2e/tests/helpers.ts
Normal file
19
web-e2e/tests/helpers.ts
Normal file
@@ -0,0 +1,19 @@
|
||||
import { expect, type Page, type Route } from "@playwright/test";
|
||||
|
||||
export async function fulfillJson(route: Route, status: number, body: unknown): Promise<void> {
|
||||
await route.fulfill({
|
||||
status,
|
||||
contentType: "application/json",
|
||||
body: JSON.stringify(body),
|
||||
});
|
||||
}
|
||||
|
||||
export async function mockEngineStatus(page: Page): Promise<void> {
|
||||
await page.route("**/api/engine/status", async (route) => {
|
||||
await fulfillJson(route, 200, { status: "ok" });
|
||||
});
|
||||
}
|
||||
|
||||
export async function expectVisibleError(page: Page, message: string): Promise<void> {
|
||||
await expect(page.getByText(message).first()).toBeVisible();
|
||||
}
|
||||
Reference in New Issue
Block a user