{
  "doc": {
    "id": "api/cypress-api/currenttest",
    "title": "Cypress.currentTest | Cypress Documentation",
    "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": "a8fd16711bdda4c7b5645b9717e588ae99ec2470",
    "updated_at": "2026-05-18T17:21:32.047Z",
    "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#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', () => {  it('toggles the nav', () => {    expect(Cypress.currentTest.title).to.eq('toggles the nav')  })})\n```\n\n### Get full path of current test title\n\n```\ndescribe('app layout and responsiveness', () => {  it('toggles the nav', () => {    expect(Cypress.currentTest.titlePath).to.deep.eq([      'app layout and responsiveness',      'toggles the nav',    ])  })})\n```\n",
      "section": "api",
      "anchors": [
        "examples"
      ],
      "path": "/llm/json/chunked/api/cypress-api/currenttest.json",
      "token_estimate": 79
    },
    {
      "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', () => {  it('toggles the nav', () => {    expect(Cypress.currentTest.titlePath).to.deep.eq([      'app layout and responsiveness',      'toggles the nav',    ])  })})\n```\n",
      "section": "api",
      "anchors": [
        "get-full-path-of-current-test-title"
      ],
      "path": "/llm/json/chunked/api/cypress-api/currenttest.json",
      "token_estimate": 44
    }
  ]
}