{
  "doc": {
    "id": "ui-coverage/guides/ignore-views-and-links",
    "title": "Ignore views and links | Cypress UI Coverage Documentation",
    "description": "Learn how to exclude irrelevant views and links from your UI Coverage reports to focus on meaningful insights.",
    "section": "ui-coverage",
    "source_path": "/llm/markdown/ui-coverage/guides/ignore-views-and-links.md",
    "version": "48b03b5502f7aea1d0454750cce208f775403542",
    "updated_at": "2026-05-20T19:00:20.270Z",
    "headings": [
      {
        "id": "ui-coverage/guides/ignore-views-and-links#ignore-views-and-links",
        "text": "Ignore views and links",
        "level": 1
      },
      {
        "id": "ui-coverage/guides/ignore-views-and-links#why-ignore-views-and-links",
        "text": "Why Ignore Views and Links?",
        "level": 2
      },
      {
        "id": "ui-coverage/guides/ignore-views-and-links#identify-views-and-links-to-ignore",
        "text": "Identify Views and Links to Ignore",
        "level": 2
      },
      {
        "id": "ui-coverage/guides/ignore-views-and-links#common-candidates-for-exclusion",
        "text": "Common Candidates for Exclusion",
        "level": 3
      },
      {
        "id": "ui-coverage/guides/ignore-views-and-links#configure-ignored-views-and-links",
        "text": "Configure Ignored Views and Links",
        "level": 2
      },
      {
        "id": "ui-coverage/guides/ignore-views-and-links#exclude-a-single-url",
        "text": "Exclude a single URL",
        "level": 3
      },
      {
        "id": "ui-coverage/guides/ignore-views-and-links#exclude-all-third-party-urls",
        "text": "Exclude all third party URLs",
        "level": 3
      },
      {
        "id": "ui-coverage/guides/ignore-views-and-links#validate-ignored-views-and-links",
        "text": "Validate Ignored Views and Links",
        "level": 2
      }
    ]
  },
  "chunks": [
    {
      "id": "ui-coverage/guides/ignore-views-and-links#why-ignore-views-and-links",
      "doc_id": "ui-coverage/guides/ignore-views-and-links",
      "heading": "Why Ignore Views and Links?",
      "heading_level": 2,
      "content_markdown": "## Why Ignore Views and Links?\n\nIgnoring views and links can help in the following scenarios:\n\n*   **Third-Party Pages**: Exclude external URLs like OAuth login pages or embedded content that you don't control or need to test.\n*   **Non-Critical Pages**: Remove irrelevant views, such as informational pages (e.g., FAQs) or admin-only sections.\n*   **Test Links**: Avoid testing URLs only generated for testing purposes or dynamically generated URLs that don't impact application functionality.\n*   **Focus on Key Areas**: Streamline coverage reports to prioritize high-impact areas and avoid clutter.\n\nBy ignoring unnecessary views or links, you can maintain clear and actionable coverage metrics.\n",
      "section": "ui-coverage",
      "anchors": [
        "why-ignore-views-and-links"
      ],
      "path": "/llm/json/chunked/ui-coverage/guides/ignore-views-and-links.json",
      "token_estimate": 135
    },
    {
      "id": "ui-coverage/guides/ignore-views-and-links#identify-views-and-links-to-ignore",
      "doc_id": "ui-coverage/guides/ignore-views-and-links",
      "heading": "Identify Views and Links to Ignore",
      "heading_level": 2,
      "content_markdown": "## Identify Views and Links to Ignore\n\nAfter recording your tests to Cypress Cloud, review the UI Coverage reports:\n\n1.  Navigate to the **UI Coverage** tab in your test run.\n2.  Look for views or links that consistently appear but don't require testing.\n3.  Note down the URLs, paths, or patterns for these views and links.\n\n### Common Candidates for Exclusion\n\n*   Third-party authentication pages (e.g., [https://auth.example.com](https://auth.example.com)).\n*   Redirects or intermediate URLs (e.g., /redirect).\n*   Informational pages (e.g., /terms).\n",
      "section": "ui-coverage",
      "anchors": [
        "identify-views-and-links-to-ignore"
      ],
      "path": "/llm/json/chunked/ui-coverage/guides/ignore-views-and-links.json",
      "token_estimate": 105
    },
    {
      "id": "ui-coverage/guides/ignore-views-and-links#configure-ignored-views-and-links",
      "doc_id": "ui-coverage/guides/ignore-views-and-links",
      "heading": "Configure Ignored Views and Links",
      "heading_level": 2,
      "content_markdown": "## Configure Ignored Views and Links\n\n[View Filters](/llm/markdown/ui-coverage/configuration/viewfilters.md) in the **App Quality** configuration are used to exclude views and links based on their URLs or patterns. To add or modify the configuration for your project, navigate to the **App Quality** tab in your project settings and add a **viewFilters** configuration.\n\nSome examples of common view filter configurations are shown below:\n\n### Exclude a single URL\n\n```\n{  \"viewFilters\": [    {      \"pattern\": \"https://auth.example.com/*\",      \"include\": false    }  ]}\n```\n\n### Exclude all third party URLs\n\n```\n{  \"viewFilters\": [    {      \"pattern\": \"http://localhost:3000/*\",      \"include\": true    },    {      \"pattern\": \"*\",      \"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": [
        "configure-ignored-views-and-links"
      ],
      "path": "/llm/json/chunked/ui-coverage/guides/ignore-views-and-links.json",
      "token_estimate": 152
    },
    {
      "id": "ui-coverage/guides/ignore-views-and-links#exclude-all-third-party-urls",
      "doc_id": "ui-coverage/guides/ignore-views-and-links",
      "heading": "Exclude all third party URLs",
      "heading_level": 3,
      "content_markdown": "### Exclude all third party URLs\n\n```\n{  \"viewFilters\": [    {      \"pattern\": \"http://localhost:3000/*\",      \"include\": true    },    {      \"pattern\": \"*\",      \"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": [
        "exclude-all-third-party-urls"
      ],
      "path": "/llm/json/chunked/ui-coverage/guides/ignore-views-and-links.json",
      "token_estimate": 49
    },
    {
      "id": "ui-coverage/guides/ignore-views-and-links#validate-ignored-views-and-links",
      "doc_id": "ui-coverage/guides/ignore-views-and-links",
      "heading": "Validate Ignored Views and Links",
      "heading_level": 2,
      "content_markdown": "## Validate Ignored Views and Links\n\nAfter updating the configuration, record your tests again and review the UI Coverage report. The ignored views and links should no longer appear in the coverage reports, streamlining the data and focusing on the critical areas of your application.\n\nIf new unnecessary views or links appear in future reports, update your filters accordingly to keep reports clean and actionable.\n",
      "section": "ui-coverage",
      "anchors": [
        "validate-ignored-views-and-links"
      ],
      "path": "/llm/json/chunked/ui-coverage/guides/ignore-views-and-links.json",
      "token_estimate": 87
    }
  ]
}