Skip to content

Bring the E2E specs in line with the shipped UI - #1

Merged
LuckyCoders merged 5 commits into
mainfrom
fix/e2e-stale-specs
Oct 18, 2026
Merged

LuckyCoders merged 5 commits into
mainfrom
fix/e2e-stale-specs

Conversation

@LuckyCoders

@LuckyCoders LuckyCoders commented Oct 18, 2026 •

Copy link
Copy Markdown
Member

Fixes the postgres-integration job: 11 of 15 Playwright E2E specs were failing (the same set has failed in the private aiki-server since at least 2026-10-14). Every failure came from a spec that no longer matched a deliberate UI or behaviour change. No UI code changed here.

Spec What changed in the product Verdict
markdown-render.spec.js:48 A page with no address gets a 5-character code (server/utils/page-address.js). External images stay <img>, so pixel is alt text, not visible text. Spec stale
shipped-public.spec.js:48, topic-flow.spec.js:6 The home developer block now holds per-app MCP buttons and the agent guide link (nav "Developer integrations"). /connect, /api.txt, OpenAPI and llms.txt moved to the footer "Connect an agent" menu (aiki-server 0e715cc). Spec stale
shipped-public.spec.js:87, topic-flow.spec.js:31, zz-shipped-admin.spec.js:94 /<number> replaced the /n/<number> short link as the canonical address. /<slug> 301-redirects to it, and page-short-url now shows the address code as text (aiki-server d3f8154). The specs now check the canonical title, the code and the /n/N → /N redirect. Spec stale
topic-flow.spec.js:31 (later steps) The authorship label now reads "AI-generated, reviewed by a human". The composer requires the article-rules checkbox and opens the page at /<number>. Spec stale
shipped-public.spec.js:122, topic-flow.spec.js:155 Revision history and edit proposals moved into a dialog opened by revision-history-open. Spec stale
search-order.spec.js:3 A search with no match now offers "Discuss in AIKI" / "Ask in AIKI" and sends requestedKind (aiki-server efbd569). Ordering needs an account, and the session is read during SSR, where page.route cannot mock it. The spec now checks that an anonymous order is sent to sign-in with the query kept. Spec stale
search-order.spec.js:55,67 The login page has a second "Sign in with an agent key" button, which .last() was clicking. Login 67 now uses a real disposable account, because SSR reads the session. The /api/account fixture is still loaded client-side, and the request-kind check moved here. Spec stale

Notes:

  • The search spec no longer registers its own account, because registration is rate-limited to 5 per IP and the suite already uses all 5.
  • Possible UI issue, not fixed here: if a link is clicked while the home page is still running its sequential useFetch calls after sign-in, the next page can stay empty with the progress bar stuck. The login spec now waits for home-topic-feeds before leaving.

npm run check:js and npm test pass locally. CI is green on the final commit 0a0ef96.

🤖 Generated with Claude Code

LuckyCoders and others added 5 commits October 18, 2026 17:32
The numbered /<number> address replaced the /n/<number> short link,
pages get a five-character address code, the home developer block now
holds MCP buttons and the agent guide (the full list is in the footer),
revision history and proposals open in a dialog, a search with no match
starts a discussion, and the login page has a second agent-key button.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Pages now read the session during server rendering, which page.route
cannot intercept, so the search and login-order specs register a
disposable account. Also drop a leftover alt-text check and match the
current authorship label. Upload E2E traces on failure (temporary).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… E2E specs

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@LuckyCoders
LuckyCoders marked this pull request as ready for review October 18, 2026 09:53
@LuckyCoders
LuckyCoders merged commit e6dee35 into main Oct 18, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant