{
  "doc": {
    "id": "ui-coverage/core-concepts/views",
    "title": "Views of URLs and mounted components | Cypress UI Coverage",
    "description": "UI Coverage is organized into views, which are the unique URLs across all snapshots from end-to-end tests and the unique mounted components from component tests.",
    "section": "ui-coverage",
    "source_path": "/llm/markdown/ui-coverage/core-concepts/views.md",
    "version": "24a73f8a97175663aaffd3b016289fb2a523a4ea",
    "updated_at": "2026-05-14T20:17:33.301Z",
    "headings": [
      {
        "id": "ui-coverage/core-concepts/views#views",
        "text": "Views",
        "level": 1
      },
      {
        "id": "ui-coverage/core-concepts/views#how-views-are-created",
        "text": "How views are created",
        "level": 2
      },
      {
        "id": "ui-coverage/core-concepts/views#examples-of-views",
        "text": "Examples of views",
        "level": 3
      },
      {
        "id": "ui-coverage/core-concepts/views#using-views",
        "text": "Using Views",
        "level": 2
      },
      {
        "id": "ui-coverage/core-concepts/views#customizing-views",
        "text": "Customizing views",
        "level": 2
      },
      {
        "id": "ui-coverage/core-concepts/views#view-grouping",
        "text": "View grouping",
        "level": 3
      },
      {
        "id": "ui-coverage/core-concepts/views#ignoring-views",
        "text": "Ignoring views",
        "level": 3
      }
    ]
  },
  "chunks": [
    {
      "id": "ui-coverage/core-concepts/views#how-views-are-created",
      "doc_id": "ui-coverage/core-concepts/views",
      "heading": "How views are created",
      "heading_level": 2,
      "content_markdown": "## How views are created\n\nBy default, UI Coverage applies a set of rules to generate a single View for dynamic URLs representing the same page. These rules ensure clarity by grouping similar URLs and reducing noise:\n\n*   **Search Parameters**: All query parameters are removed (e.g., `/dashboard?tab=overview` becomes `/dashboard`).\n*   **Hash Parameters**: Fragment identifiers are removed unless they represent a subpath (e.g., `#/admin`).\n*   **Dynamic Segments**: URL segments that differ only by integers or UUIDs are replaced with a wildcard (`*`).\n\n### Examples of views\n\n*   `/users/123/profile` and `/users/456/profile` become `/users/*/profile`\n*   `/dashboard?tab=overview` and `/dashboard?tab=settings` become `/dashboard`\n*   `/app#settings` and `/app#profile` become `/app`\n*   `/app#/admin` and `/app#/settings` remain separate Views\n\nThese rules help consolidate similar pages into manageable Views while maintaining specificity where needed.\n",
      "section": "ui-coverage",
      "anchors": [
        "how-views-are-created"
      ],
      "path": "/llm/json/chunked/ui-coverage/core-concepts/views.json",
      "token_estimate": 165
    },
    {
      "id": "ui-coverage/core-concepts/views#examples-of-views",
      "doc_id": "ui-coverage/core-concepts/views",
      "heading": "Examples of views",
      "heading_level": 3,
      "content_markdown": "### Examples of views\n\n*   `/users/123/profile` and `/users/456/profile` become `/users/*/profile`\n*   `/dashboard?tab=overview` and `/dashboard?tab=settings` become `/dashboard`\n*   `/app#settings` and `/app#profile` become `/app`\n*   `/app#/admin` and `/app#/settings` remain separate Views\n\nThese rules help consolidate similar pages into manageable Views while maintaining specificity where needed.\n",
      "section": "ui-coverage",
      "anchors": [
        "examples-of-views"
      ],
      "path": "/llm/json/chunked/ui-coverage/core-concepts/views.json",
      "token_estimate": 57
    },
    {
      "id": "ui-coverage/core-concepts/views#using-views",
      "doc_id": "ui-coverage/core-concepts/views",
      "heading": "Using Views",
      "heading_level": 2,
      "content_markdown": "## Using Views\n\nIn the UI Coverage interface, Views are listed along with their coverage scores, providing insights into:\n\n*   **Tested Areas**: Identify which parts of your application have sufficient test coverage.\n*   **Untested Areas**: Spot pages or components that lack testing and prioritize them.\n*   **Coverage Trends**: Track how coverage evolves across Views over time.\n*   **Critical Flows**: Focus testing efforts on key user journeys and ensure their completeness.\n",
      "section": "ui-coverage",
      "anchors": [
        "using-views"
      ],
      "path": "/llm/json/chunked/ui-coverage/core-concepts/views.json",
      "token_estimate": 93
    },
    {
      "id": "ui-coverage/core-concepts/views#customizing-views",
      "doc_id": "ui-coverage/core-concepts/views",
      "heading": "Customizing views",
      "heading_level": 2,
      "content_markdown": "## Customizing views\n\nYou can tailor how URLs are grouped into Views using configuration options:\n\n### View grouping\n\nDefine rules for grouping URLs into Views to align with your application's structure:\n\n```\n{  \"views\": [    {      \"pattern\": \"https://cypress.io/users/*\"    }  ]}\n```\n\nTo learn more about the configuration options, refer to the [Views](/llm/markdown/ui-coverage/configuration/views.md) documentation.\n\n### Ignoring views\n\nExclude irrelevant or low-priority URLs from being tracked as Views:\n\n```\n{  \"viewFilters\": [    {      \"pattern\": \"https://auth.example.com/*\",      \"include\": false    }  ]}\n```\n\nTo learn more about the configuration options, refer to the [View Filters](/llm/markdown/ui-coverage/configuration/viewfilters.md) documentation.\n",
      "section": "ui-coverage",
      "anchors": [
        "customizing-views"
      ],
      "path": "/llm/json/chunked/ui-coverage/core-concepts/views.json",
      "token_estimate": 121
    },
    {
      "id": "ui-coverage/core-concepts/views#view-grouping",
      "doc_id": "ui-coverage/core-concepts/views",
      "heading": "View grouping",
      "heading_level": 3,
      "content_markdown": "### View grouping\n\nDefine rules for grouping URLs into Views to align with your application's structure:\n\n```\n{  \"views\": [    {      \"pattern\": \"https://cypress.io/users/*\"    }  ]}\n```\n\nTo learn more about the configuration options, refer to the [Views](/llm/markdown/ui-coverage/configuration/views.md) documentation.\n",
      "section": "ui-coverage",
      "anchors": [
        "view-grouping"
      ],
      "path": "/llm/json/chunked/ui-coverage/core-concepts/views.json",
      "token_estimate": 51
    },
    {
      "id": "ui-coverage/core-concepts/views#ignoring-views",
      "doc_id": "ui-coverage/core-concepts/views",
      "heading": "Ignoring views",
      "heading_level": 3,
      "content_markdown": "### Ignoring views\n\nExclude irrelevant or low-priority URLs from being tracked as Views:\n\n```\n{  \"viewFilters\": [    {      \"pattern\": \"https://auth.example.com/*\",      \"include\": false    }  ]}\n```\n\nTo learn more about the configuration options, refer to the [View Filters](/llm/markdown/ui-coverage/configuration/viewfilters.md) documentation.\n",
      "section": "ui-coverage",
      "anchors": [
        "ignoring-views"
      ],
      "path": "/llm/json/chunked/ui-coverage/core-concepts/views.json",
      "token_estimate": 51
    }
  ]
}