The one and only agent harness for complex codebases. Project memory, planning, execution, and verified completion inside Codex.
JavaScript aiai-agentsclaudeclaude-codeclicodexdeveloper-toolslazylazycodexoh-my-openagentomoopenaiorchestrationtypescript
test(web): make the stars pill e2e test prove the live update
YeonGyu-Kim5aa39081787e
diff --git a/packages/web/e2e/landing.spec.ts b/packages/web/e2e/landing.spec.tsindex 1521f29b..b9a724e4 100644--- a/packages/web/e2e/landing.spec.ts+++ b/packages/web/e2e/landing.spec.ts@@ -98,11 +98,16 @@ test.describe("landing page — links + footer", () => {})test("updates the github stars pill from the live API", async ({ page }) => {+ // A count the fallback label can never show, served before navigation, so+ // the pill passes only when the API response actually reaches the DOM.+ await page.route("**/api/github-stars", (route) =>+ route.fulfill({ json: { stars: 987_654, formatted: "987.7k", source: "github" } }),+ )await page.goto("/")const stars = page.locator(`a[href="${SITE_CONFIG.githubUrl}"]`).first()- await expect(stars).toContainText(/^\d+(?:\.\d+[kM])?\sstars$/)- await expect(stars).toHaveAttribute("aria-label", /\d+(?:\.\d+[kM])?\sstars on GitHub/)+ await expect(stars).toHaveText("987.7k stars")+ await expect(stars).toHaveAttribute("aria-label", "987.7k stars on GitHub")})test("has a Docs link pointing at /docs", async ({ page }) => {