{
  "doc": {
    "id": "api/cypress-api/currenttest",
    "title": "Cypress.currentTest",
    "description": "Cypress.currentTest is an object representing the currently executing test instance, with properties to access the title of the test.",
    "section": "api",
    "source_path": "/llm/markdown/api/cypress-api/currenttest.md",
    "version": "29f95bf8bb06f320986f3749f5bf09a35a409eab",
    "updated_at": "2026-09-04T10:49:54.630Z",
    "headings": [
      {
        "id": "api/cypress-api/currenttest#cypress-currenttest",
        "text": "Cypress.currentTest",
        "level": 1
      },
      {
        "id": "api/cypress-api/currenttest#syntax",
        "text": "Syntax",
        "level": 2
      },
      {
        "id": "api/cypress-api/currenttest#examples",
        "text": "Examples",
        "level": 2
      },
      {
        "id": "api/cypress-api/currenttest#get-current-test-title",
        "text": "Get current test title",
        "level": 3
      },
      {
        "id": "api/cypress-api/currenttest#get-full-path-of-current-test-title",
        "text": "Get full path of current test title",
        "level": 3
      },
      {
        "id": "api/cypress-api/currenttest#history",
        "text": "History",
        "level": 2
      }
    ]
  },
  "chunks": [
    {
      "id": "api/cypress-api/currenttest#syntax",
      "doc_id": "api/cypress-api/currenttest",
      "heading": "Syntax",
      "heading_level": 2,
      "content_markdown": "## Syntax\n\n```\n// an object with title and titlePath properties\nCypress.currentTest\n\n// the title of the current test\nCypress.currentTest.title\n\n// an array with the current test's title path\nCypress.currentTest.titlePath\n```\n",
      "section": "api",
      "anchors": [
        "syntax"
      ],
      "path": "/llm/json/chunked/api/cypress-api/currenttest.json",
      "token_estimate": 41
    },
    {
      "id": "api/cypress-api/currenttest#examples",
      "doc_id": "api/cypress-api/currenttest",
      "heading": "Examples",
      "heading_level": 2,
      "content_markdown": "## Examples\n\n### Get current test title\n\n```\ndescribe('app layout and responsiveness', () => {\n  it('toggles the nav', () => {\n    expect(Cypress.currentTest.title).to.eq('toggles the nav')\n  })\n})\n```\n\n### Get full path of current test title\n\n```\ndescribe('app layout and responsiveness', () => {\n  it('toggles the nav', () => {\n    expect(Cypress.currentTest.titlePath).to.deep.eq([\n      'app layout and responsiveness',\n      'toggles the nav',\n    ])\n  })\n})\n```\n",
      "section": "api",
      "anchors": [
        "examples"
      ],
      "path": "/llm/json/chunked/api/cypress-api/currenttest.json",
      "token_estimate": 81
    },
    {
      "id": "api/cypress-api/currenttest#get-full-path-of-current-test-title",
      "doc_id": "api/cypress-api/currenttest",
      "heading": "Get full path of current test title",
      "heading_level": 3,
      "content_markdown": "### Get full path of current test title\n\n```\ndescribe('app layout and responsiveness', () => {\n  it('toggles the nav', () => {\n    expect(Cypress.currentTest.titlePath).to.deep.eq([\n      'app layout and responsiveness',\n      'toggles the nav',\n    ])\n  })\n})\n```\n",
      "section": "api",
      "anchors": [
        "get-full-path-of-current-test-title"
      ],
      "path": "/llm/json/chunked/api/cypress-api/currenttest.json",
      "token_estimate": 45
    }
  ]
}