Skip to content
  1. Home
  2. workspace
Checking…
Demo view — sanitized data only. Sign in over HTTPS to create projects and manage the workspace.

AI Engineering Workspace

Partial

Chat, files, terminal and preview in one place. Chat sessions run on a durable Postgres-backed queue (chat only: no tools or shell). Live models need an API key; the terminal is unavailable.

Project files

read-only

app/qa/services.mjs

1// Services pages QA (Chromium). usage: node qa/services.mjs [base]
2import { chromium } from "playwright"; import fs from "node:fs"; import path from "node:path";
3const BASE = process.argv[2] ?? "https://cloud.zoobd.com"; const R = []; const rec = (n, ok, d = "") => { R.push({ name: n, ok: !!ok }); console.log((ok ? "PASS " : "FAIL ") + n + (ok ? "" : " -> " + d)); };
4const SLUGS = ["cloud-vps", "managed-web-hosting", "bring-your-own-server", "ai-powered-development", "one-click-marketplace", "remote-server-management", "infrastructure-monitoring", "security-and-privacy"];
5const b = await chromium.launch(); const errs = [];
6const mk = async (o = {}) => { const c = await b.newContext({ viewport: { width: 1280, height: 900 }, ...o }); const p = await c.newPage(); p.on("pageerror", e => errs.push(e.message)); p.on("console", m => { if (m.type() === "error") errs.push(m.text()); }); return { c, p }; };
7{ const { c, p } = await mk(); await p.goto(BASE + "/services", { waitUntil: "networkidle" });
8 rec("index lists all 8 services", (await p.locator("a[href^='/services/']").count()) === 8);
9 rec("index groups by real status (1 available, 2 experimental, 5 upcoming)", await p.evaluate(() => [...document.querySelectorAll("section[aria-labelledby]")].map(s => s.querySelectorAll("a[href^='/services/']").length).join(",") === "1,2,5"));
10 await p.goto(BASE + "/", { waitUntil: "networkidle" }); const land = await p.locator("#services article").evaluateAll(a => a.map(x => [x.querySelector("h3").textContent, /Available|Experimental|Upcoming/.exec(x.textContent)[0]]));
11 rec("landing cards link to a details page", (await p.locator("#services article a[href^='/services/']").count()) === 8);
12 await p.evaluate(() => 0); const labels = {}; for (const s of SLUGS) { await p.goto(BASE + "/services/" + s, { waitUntil: "domcontentloaded" }); labels[s] = [await p.locator("h1").innerText(), (await p.locator("header .inline-flex").first().innerText()).trim()]; }
13 rec("detail page status matches landing label for every service", land.every(([n, st]) => Object.values(labels).some(([hn, hs]) => hn === n && hs === st)), JSON.stringify(land.filter(([n, st]) => !Object.values(labels).some(([hn, hs]) => hn === n && hs === st))));
14 await c.close(); }
15for (const s of SLUGS) { const { c, p } = await mk(); const r = await p.goto(BASE + "/services/" + s, { waitUntil: "networkidle" });
16 const t = await p.locator("main").innerText();
17 rec(`${s}: 200, one h1, all 7 sections, breadcrumb`, r.status() === 200 && (await p.locator("h1").count()) === 1 && (await p.locator("article h2").count()) === 7 && (await p.locator("nav[aria-label=Breadcrumb]").count()) === 1);
18 rec(`${s}: no prices, uptime numbers or certification claims`, !/[$€£]\s?\d|\d+\s?%\s?uptime|99\.\d|soc ?2 (certified|compliant)|iso ?27001 (certified|compliant)/i.test(t));
19 rec(`${s}: states current limits and what exists today`, /Known limits/.test(t) && /What exists today/.test(t));
20 rec(`${s}: internal links resolve`, await (async () => { const hs = await p.locator("main a[href^='/']").evaluateAll(a => [...new Set(a.map(x => x.getAttribute("href")))]); for (const h of hs) { const x = await c.request.get(BASE + h); if (x.status() !== 200) return false; } return true; })());
21 rec(`${s}: anchor targets exist`, await p.evaluate(() => [...document.querySelectorAll("a[href^='#']")].every(a => document.querySelector(a.getAttribute("href"))))); await c.close(); }
22{ const { c, p } = await mk({ viewport: { width: 390, height: 844 }, isMobile: true, hasTouch: true }); for (const u of ["/services", ...SLUGS.map(s => "/services/" + s)]) { await p.goto(BASE + u, { waitUntil: "networkidle" }); if (!(await p.evaluate(() => document.documentElement.scrollWidth <= innerWidth + 1))) { rec("mobile no overflow " + u, false); } }
23 rec("mobile: no horizontal overflow on index + all detail pages", !R.some(r => r.name.startsWith("mobile no overflow"))); await c.close(); }
24{ const { c, p } = await mk({ viewport: { width: 768, height: 1024 } }); let ok = true; for (const u of ["/services", "/services/cloud-vps"]) { await p.goto(BASE + u, { waitUntil: "networkidle" }); ok = ok && await p.evaluate(() => document.documentElement.scrollWidth <= innerWidth + 1); } rec("tablet 768: no overflow", ok); await c.close(); }
25{ const { c, p } = await mk(); const n0 = errs.length; const r = await p.goto(BASE + "/services/does-not-exist"); await p.waitForTimeout(300); errs.length = n0; /* expected 404 message */ rec("unknown slug returns 404", r.status() === 404, String(r.status()));
26 await p.goto(BASE + "/", { waitUntil: "networkidle" }); await p.getByRole("link", { name: "Services" }).first().click(); await p.waitForURL("**/services"); rec("header Services link opens the hub", /\/services$/.test(p.url()));
27 await p.goto(BASE + "/services/managed-web-hosting"); await p.keyboard.press("Tab"); rec("keyboard focus works on detail page", !!(await p.evaluate(() => document.activeElement?.textContent))); await c.close(); }
28{ const { c, p } = await mk({ javaScriptEnabled: false }); await p.goto(BASE + "/services/bring-your-own-server"); rec("no-JS: full content renders", (await p.locator("article h2").count()) === 7); await c.close(); }
29rec("no console/page errors across pages", errs.length === 0, errs.slice(0, 3).join(" | "));
30await b.close(); const pass = R.filter(r => r.ok).length; console.log(`\n${pass}/${R.length} services-page checks passed (Chromium only)`);
31fs.writeFileSync(path.resolve("../design/verification/services.json"), JSON.stringify({ at: new Date().toISOString(), total: R.length, passed: pass, failed: R.length - pass, results: R }, null, 1)); process.exit(pass === R.length ? 0 : 1);
32

Conversation

Partial
Sign in to start AI sessions.

Task checklist

  • Application shell deployed
  • Persistent projects
  • Agent runtime
  • Sandboxed terminal

Execution activity

No agent sessions. Git HEAD 692573d on master.

Approval requests

None pending.