{
  "test": "links",
  "title": "Hidden links",
  "data_version": "1.0.0",
  "seed": 20261102,
  "page": "/crawl/links/",
  "needs": "Needs JS",
  "difficulty": "Hard",
  "what_it_tests": "Five pages, each reachable one way only: a script-added link, JSON-LD, a clickable div, a Link header and a <base href>.",
  "expect": {
    "destinations": 5,
    "start_url": "/crawl/links/",
    "wrong_resolution": {
      "url": "/crawl/links/found/",
      "status": 404,
      "note": "What found/ means if you ignore <base href>."
    }
  },
  "records": [
    {
      "url": "/crawl/links/scripted/",
      "code": "LINK-SCRIPT",
      "found_by": "An <a> element that script adds to the page after load. It is not in the HTML."
    },
    {
      "url": "/crawl/links/from-json-ld/",
      "code": "LINK-JSONLD",
      "found_by": "The \"url\" of the second item in the page's JSON-LD ItemList. Nothing else on the page names it."
    },
    {
      "url": "/crawl/links/card/",
      "code": "LINK-CARD",
      "found_by": "The data-href attribute of a <div> that script makes clickable. There is no <a>."
    },
    {
      "url": "/crawl/links/via-header/",
      "code": "LINK-HEADER",
      "found_by": "The HTTP response header Link: </crawl/links/via-header/>; rel=\"next\" on /crawl/links/."
    },
    {
      "url": "/crawl/links/base/found/",
      "code": "LINK-BASE",
      "found_by": "The relative link href=\"found/\", resolved against <base href=\"/crawl/links/base/\">. Resolved against the page URL instead, it gives /crawl/links/found/, which is a 404."
    }
  ]
}
