Skip to content

Unquarantine BlazorWasmTemplateTest - #70054

Merged
ilonatommy merged 2 commits into
mainfrom
ilonatommy-blazor-restore-quarantine
Oct 26, 2026
Merged

ilonatommy merged 2 commits into
mainfrom
ilonatommy-blazor-restore-quarantine

Conversation

@ilonatommy

@ilonatommy ilonatommy commented Oct 26, 2026 •

Copy link
Copy Markdown
Member

Fix offline PWA menu validation and unquarantine BlazorWasmTemplateTest.

Description

Remove the QuarantinedTest attribute associated with #66293 so all methods in BlazorWasmTemplateTest return to normal CI, and fix the shared navigation helper's incorrect assumption that the menu always starts collapsed. No product or template content is changed.

The original NU1603 DevServer version-pin defect was fixed in #66303. Across all 68 completed aspnetcore-quarantined-pr builds on main during October 19–26, 2026, the standalone and Azure Active Directory methods passed, while the PWA method failed with a different error, not NU1603.

The PWA test was timing out waiting for .nav-scrollable to become visible during its offline interaction check. This failure was caused by #68768 applied on disabled tests.

The standalone template toggles its menu state when a navigation link is clicked, including at desktop width where CSS keeps it visible. The online interaction check visits Counter and Weather, toggling twice. The offline check excludes Weather and visits only Counter, leaving the menu expanded. After narrowing the viewport, the helper's unconditional toggler click closes that already-open menu, and its wait for a visible menu times out.

VerifyNavMenuCollapsesAfterNavigationAsync now clicks the toggler only when .nav-scrollable is hidden. The existing visibility wait, Home navigation, collapse assertion, and viewport restoration remain unchanged. The existing PWA test already exercises the regression-producing sequence.

Fixes #66293

Remove the class-level quarantine associated with #66293. Leave the existing tests unchanged, including the known offline PWA navigation failure.

Co-authored-by: Copilot App <[email protected]>
Copilot AI balanced review requested due to automatic review settings October 26, 2026 14:49
@github-actions github-actions Bot added the area-commandlinetools Includes: Command line tools, dotnet-dev-certs, dotnet-user-jwts, and OpenAPI label Oct 26, 2026

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.

🟡 Changes recommended

The reported still-failing PWA test needs a method-level quarantine before the passing tests return to normal CI.

1 open issue
What changed in this PR

This PR returns BlazorWasmTemplateTest to normal CI after the DevServer version-pin fix in #66303 addressed the original NU1603 failure.

Changes:

  • Removes the class-level quarantine associated with #66293.
  • Leaves test logic and product behavior unchanged.
File Description
src/​ProjectTemplates/​test/​Templates.Blazor.Tests/​BlazorWasmTemplateTest.cs Removes the quarantine attribute from the test class.

Review effort: Balanced

Only open the mobile navigation menu when it is hidden. The offline PWA check visits Counter without Weather, so the standalone menu is already expanded when the shared assertion begins.

Preserve the assertion that navigating Home closes the menu and restore the original viewport as before.

Co-authored-by: Copilot App <[email protected]>
@ilonatommy ilonatommy self-assigned this Oct 26, 2026
@ilonatommy ilonatommy added area-blazor Includes: Blazor, Razor Components feature-templates and removed area-commandlinetools Includes: Command line tools, dotnet-dev-certs, dotnet-user-jwts, and OpenAPI labels Oct 26, 2026
@ilonatommy
ilonatommy requested review from dariatiurina and a balanced review from Copilot October 26, 2026 15:52
@ilonatommy
ilonatommy enabled auto-merge (squash) October 26, 2026 15:54

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.

🔵 Needs a closer look

Review evidence is incomplete, including confirmation that the corrected offline PWA sequence passes before returning the suite to normal CI.

No open issues 🎉

1 resolved since last review

Review effort: Balanced

@ilonatommy
ilonatommy merged commit 12e90ca into main Oct 26, 2026
43 of 44 checks passed
@ilonatommy
ilonatommy deleted the ilonatommy-blazor-restore-quarantine branch October 26, 2026 18:40
@github-actions

Copy link
Copy Markdown
Contributor

✅ No documentation PR was created.

Confidence that documentation is needed: 2%

No docs needed: the PR unquarantines a test and fixes a test navigation helper, with no product or template changes.

Documentation surfaces considered

  • Conceptual article: Not required — Only test files under src/ProjectTemplates/test changed; no user-visible behavior.
  • Migration guidance: Not required — No upgrade action for users; test infrastructure only.
  • Breaking change: Not required — No API, default, or behavior changes.

@dotnet-milestone-bot dotnet-milestone-bot Bot added this to the 12.0-preview1 milestone Nov 4, 2026

This branch was previously deployed

1 inactive deployment
copilot-pat-pool — b4421070 Deployed Oct 26, 2026 by ilonatommy via conclusion #103
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-blazor Includes: Blazor, Razor Components feature-templates

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Quarantine BlazorWasmTemplateTest (NU1603 NuGet restore failures)

3 participants