Skip to content

test(e2e): track example.com's reworded body in fetch asserts - #72

Merged
ilya-bogin-keenable merged 2 commits into
mainfrom
fix/e2e-example-com-content
Sep 29, 2026
Merged

ilya-bogin-keenable merged 2 commits into
mainfrom
fix/e2e-example-com-content

Conversation

@ilya-bogin-keenable

@ilya-bogin-keenable ilya-bogin-keenable commented Sep 29, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Nightly E2E (run 36529843973) failed on all three platforms: test_fetch_single_url and test_fetch_live asserted "# Example Domain" in content.

example.com itself changed: it no longer has the <h1> in the body, and the paragraph now reads "This domain is for use in documentation examples without needing permission. This is not a service, avoid relying on it for testing and monitoring purposes." Both cached and --live fetches return this. The backend still keeps headings on other pages (e.g. # Example Domains on iana.org), so this is not a converter regression.

  • Assert on the new body text via one EXAMPLE_BODY constant, so the next rewording is a one-line fix.
  • Fix a silently vacuous assert in test_fetch_prompt: its "full page not returned" check looked for the old "illustrative examples" wording, so it passed even if the daemon dropped prompt. It now uses EXAMPLE_BODY.
  • Re-pin test_fetch_prompt on a fact the body states. With the <h1> gone the title is no longer in the markdown, so "Answer with the exact page title" passed 1/5 locally (the model replied "The page content does not contain a title.") and failed in CI — the same trap test(e2e): pin fetch --prompt on a fact the page actually states #59 fixed for the domain name. The new prompt ("What does the page say not to rely on it for?") returned "Testing and monitoring purposes" 6/6.

Test plan

  • Manually checked against the live API with a fresh 0.2.3 build
  • Manual dispatch of E2E on this branch: run 36535135099 green on Linux / macOS / Windows

Follow-up idea: example.com now explicitly asks not to be used for testing — content-sensitive asserts could move to a fixture page we control.

🤖 Generated with Claude Code

ilya-bogin-keenable and others added 2 commits September 29, 2026 10:06
example.com dropped its <h1> and reworded its paragraph, so
test_fetch_single_url and test_fetch_live failed on every platform
looking for "# Example Domain". Assert on the new body text instead,
kept in one EXAMPLE_BODY constant.

The same change silently neutered test_fetch_prompt: its negative
assert looked for the old "illustrative examples" wording, so it
passed even if the daemon dropped `prompt`. It now uses EXAMPLE_BODY.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
With the <h1> gone from example.com the markdown no longer contains the
page title, so "Answer with the exact page title" failed 4/5 locally
("The page content does not contain a title.") and once in CI. Ask for
a fact the paragraph states instead (6/6 locally).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@ilya-bogin-keenable
ilya-bogin-keenable merged commit a38444e into main Sep 29, 2026
16 checks passed
@ilya-bogin-keenable
ilya-bogin-keenable deleted the fix/e2e-example-com-content branch September 29, 2026 07:42
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