Skip to content

[release/8.0] Scope sections E2E assertions to mounted app - #69253

Merged
wtgodbe merged 1 commit into
dotnet:release/8.0from
wtgodbe:fix-sections-e2e-selector-release-8.0
Sep 14, 2026
Merged

wtgodbe merged 1 commit into
dotnet:release/8.0from
wtgodbe:fix-sections-e2e-selector-release-8.0

Conversation

@wtgodbe

@wtgodbe wtgodbe commented Sep 11, 2026

Copy link
Copy Markdown
Member

Description

The recent JavaScript root component servicing change added a top-level <p> to BasicTestApp. The sections E2E tests used a document-wide paragraph selector, so they started reading that unrelated element instead of the content rendered by the mounted test component.

Capture the mounted app element and scope paragraph lookups to it. This follows the existing pattern in SectionsTest and fixes the deterministic failures affecting the release/8.0 Components E2E pipeline and #69209.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI lite review requested due to automatic review settings September 11, 2026 21:57
@wtgodbe
wtgodbe requested a review from a team as a code owner September 11, 2026 21:57
@dotnet-policy-service dotnet-policy-service Bot added this to the 8.0.x milestone Sep 11, 2026
@dotnet-policy-service

Copy link
Copy Markdown
Contributor

Hi @wtgodbe. If this is not a tell-mode PR, please make sure to follow the instructions laid out in the servicing process document.
Otherwise, please add tell-mode label.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No unresolved issues were identified that would block approval.

Pull request overview

Scopes Sections E2E paragraph assertions to the mounted test component, avoiding interference from unrelated BasicTestApp markup.

Changes:

  • Stores the mounted app element in both test classes.
  • Uses the mounted element for all paragraph lookups.
File summaries
File Description
src/Components/test/E2ETest/Tests/SectionsWithErrorBoundaryTest.cs Updated as part of this pull request.
src/Components/test/E2ETest/Tests/SectionsWithCascadingParametersTest.cs Updated as part of this pull request.
Review details
  • Files reviewed: 2/2 changed files
  • Comments generated: 0
  • Review effort level: Lite

💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.

@wtgodbe wtgodbe added the tell-mode Indicates a PR which is being merged during tell-mode label Sep 14, 2026
@wtgodbe
wtgodbe merged commit 3f8e57e into dotnet:release/8.0 Sep 14, 2026
23 of 27 checks passed
@dotnet-policy-service dotnet-policy-service Bot removed this from the 8.0.x milestone Sep 14, 2026
This was referenced Oct 13, 2026
This was referenced Oct 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

tell-mode Indicates a PR which is being merged during tell-mode

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants