mirror of
https://github.com/logos-co/logos-tutorial.git
synced 2026-08-31 04:41:08 +00:00
support --output option ; generate both tutorials and example code from test specs delete old code files add to readme instructions about run.sh update run.sh to avoid logs and hardcoded paths
25 lines
719 B
JavaScript
25 lines
719 B
JavaScript
import { resolve } from "node:path";
|
|
|
|
// CI sets LOGOS_QT_MCP automatically; for interactive use: nix build .#test-framework -o result-mcp
|
|
const root =
|
|
process.env.LOGOS_QT_MCP ||
|
|
new URL("../result-mcp", import.meta.url).pathname;
|
|
const { test, run } = await import(
|
|
resolve(root, "test-framework/framework.mjs")
|
|
);
|
|
|
|
test("calc_ui_cpp: loads and shows title", async (app) => {
|
|
await app.waitFor(
|
|
async () => {
|
|
await app.expectTexts(["Logos Calculator (C++ backend)"]);
|
|
},
|
|
{ timeout: 15000, interval: 500, description: "UI to load" },
|
|
);
|
|
});
|
|
|
|
test("calc_ui_cpp: operation buttons visible", async (app) => {
|
|
await app.expectTexts(["Add", "Multiply", "Factorial", "Fibonacci"]);
|
|
});
|
|
|
|
run();
|