Skip to content

Quarantine VirtualizationCspTest.Virtualize_WithItems_DoesNotViolate_StrictStyleCspPolicy #67352

Closed

Description

@github-actions

Failing Test

Microsoft.AspNetCore.Components.E2ETest.ServerExecutionTests.VirtualizationCspTest.Virtualize_WithItems_DoesNotViolate_StrictStyleCspPolicy

Error Message

The test failed in CI (components-e2e pipeline 87) as an E2E Selenium test. The specific error details were not captured in the test result data, but the failure occurred 1 time out of 30 builds monitored (29 passing, 1 failing).

Build

Build 1472771 (pipeline 87)

Notes

The test verifies that the Blazor Virtualize component with Items does not emit inline styles that violate a strict CSP style-src policy. This E2E test uses Selenium to navigate to the page and check the browser's security violation log. Flaky failures in CSP tests can occur due to browser timing, cache state, or transient rendering differences in CI.

Generated by Daily Test Quarantine Management · 5.7K AIC · ⌖ 52 AIC · ⊞ 25.6K · ◷

Activity

  1. github-actions commented on Jun 21, 2026

    @github-actions
    ContributorAuthor

    Investigation

    The test Virtualize_WithItems_DoesNotViolate_StrictStyleCspPolicy verifies that the Blazor Virtualize component does not emit inline style attributes that would violate a strict Content Security Policy (style-src 'none' or 'self' without 'unsafe-inline'). The test navigates Selenium to a page with strict CSP headers and checks that no browser CSP violations are reported.

    In the failing build, this E2E test failed once out of 30 monitored runs. The intermittent nature and lack of a specific error message in the test result metadata suggest a transient CI issue — possibly a slow browser startup causing the CSP check to run before the page fully loads, a cached state from a prior test run contaminating the browser's violation log, or a timing-related rendering difference where a style attribute was briefly present before a re-render removed it.

    No specific code change is associated with the regression onset. Quarantine is appropriate given the low failure rate and transient nature.

    Generated by Daily Test Quarantine Management · 5.7K AIC · ⌖ 52 AIC · ⊞ 25.6K · ◷

  2. added
    area-blazor
    on Jul 20, 2026
  3. added this to the Backlog milestone on Jul 21, 2026
  4. self-assigned this
    on Jul 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area-blazortest-failure

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions