docs: split Writing tests into Goals, Assertions, and Locators pages

Merged
KA
2mo ago
+199-117

The "Writing tests" page mixed three topics. Each now has its own page in "Get started", after Quickstart:

  • docs/goals.mdx: agent.act, plus the general sections (tests without a screen, structure, fixtures, run one test).
  • docs/assertions.mdx: agent.assert, waitFor, extract, judging pixels, and a short locator-assertion section that points to Locators.
  • docs/locators.mdx: screen and expect. Opens with a full test so the page reads on its own.
  • docs/docs.json redirects /writing-tests to /goals. Old anchors land at the top of Goals, since Mintlify redirects drop the fragment; nothing in the repo links to them anymore.
  • Links updated: the anchors in index.mdx; the cards in index.mdx, quickstart.mdx, and the Playwright, Cypress, Selenium, and Maestro migration guides now point to /goals; the mobile.mdx card points to /locators.
  • The writing-tests skill guide topic (e2e guide writing-tests) is a separate thing and keeps its name.

Verified

Ran it locally: yes

  • docs site, mint dev: the three pages render under "Get started", with the sidebar and the "On this page" sections as expected.
  • pnpm docs:check: mint validate and mint broken-links pass.
GoalsAssertionsLocators
goalsassertionslocators