Repository navigation
Assert WebAssembly browser configuration environment name - #69702
Merged
Merged
Conversation
Co-authored-by: Copilot App <[email protected]>
Member
|
It looks good to me 👍 |
Contributor
There was a problem hiding this comment.
🔵 Needs a closer look
No blocking findings were identified, but missing frozen review evidence leaves automated approval checks incomplete.
0 open findings
What changed in this PR
Strengthens test-only coverage for WebAssembly hosting environment names on initial load and enhanced navigation.
Changes:
- Configures a non-default browser environment for this test fixture.
- Displays the environment name after interactive rendering.
- Adds exact assertions while preserving existing environment-variable and navigation checks.
| File | Description |
|---|---|
| src/Components/test/testassets/Components.WasmMinimal/Pages/BrowserConfigurationEnvVars.razor | Displays the interactive hosting environment name. |
| src/Components/test/testassets/Components.TestServer/RazorComponentEndpointsStartup.cs | Adds an opt-in browser environment override. |
| src/Components/test/E2ETest/Tests/BrowserConfigurationTest.cs | Configures and asserts the custom environment in both tests. |
🧠 Review effort: Balanced
💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.
maraf
approved these changes
Oct 15, 2026
Member
|
/ba-g Failures are unrelated |
maraf
temporarily deployed
to
copilot-pat-pool
October 21, 2026 09:54 — with
GitHub Actions
Inactive
maraf
temporarily deployed
to
copilot-pat-pool
October 21, 2026 09:55 — with
GitHub Actions
Inactive
maraf
temporarily deployed
to
copilot-pat-pool
October 21, 2026 09:55 — with
GitHub Actions
Inactive
maraf
temporarily deployed
to
copilot-pat-pool
October 21, 2026 09:57 — with
GitHub Actions
Inactive
maraf
temporarily deployed
to
copilot-pat-pool
October 21, 2026 09:58 — with
GitHub Actions
Inactive
maraf
temporarily deployed
to
copilot-pat-pool
October 21, 2026 09:59 — with
GitHub Actions
Inactive
Contributor
|
✅ No documentation PR was created. Confidence that documentation is needed: 3% No docs needed: the PR only adds assertions to E2E tests and test assets. Documentation surfaces considered
|
maraf
temporarily deployed
to
copilot-pat-pool
October 21, 2026 09:59 — with
GitHub Actions
Inactive
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Assert WebAssembly environment name from browser configuration
Assert the actual WebAssembly environment on initial and enhanced navigation.
Description
The existing browser-configuration E2E tests verify environment variables but do not verify the hosting environment name. Add an exact assertion against a non-default name in both existing tests, while retaining their WebAssembly, environment-variable, and enhanced-navigation DOM-preservation checks.
The test fixture opts into the custom browser environment through configuration, so other classes using the shared startup keep their existing defaults. The existing client page reads
IHostEnvironment.EnvironmentNameonly after its first interactive render; prerendered server output and the runtime's defaultDevelopmentenvironment cannot satisfy the assertion.This is test-only coverage, not a fix for a current runtime defect. No shipping code, public API, dependency manifests, or test method names change. Inline documentation is not applicable to the added assertions and test-asset output.
Validation
Validation uses current public main
851622243f8aad5d72636142ec2414be966c2449and the real Selenium startup/navigation path.BrowserConfigurationTestEnvironment, actualDevelopment, after both variables, WebAssembly execution, and preserved HTML have passed. The initial-load test remains green.Boot.Web.tsbrowser-configuration consumer and omits only the enhanced-navigation environment name. Freshly built, served JavaScript was checked against the in-tree bundle. The mutation and temporary diagnostics are removed./favicon.ico404 on initial loads and existing legacy-initializer warnings; no other failed responses or resource-loading failures were observed in those captures.Commands were run from the repository root after
. .\activate.ps1for .NET commands:npm run buildnpm run buildfromsrc\Components\Web.JSdotnet build src\Components\test\E2ETest\Microsoft.AspNetCore.Components.E2ETests.csproj --no-restore -v:q -p:UseIisNativeAssets=falsedotnet test src\Components\test\E2ETest\Microsoft.AspNetCore.Components.E2ETests.csproj --no-build --filter "FullyQualifiedName~BrowserConfigurationTest|FullyQualifiedName~GlobalInteractivityTest.CanNavigateFromStaticToInteractiveAndBack|FullyQualifiedName~GlobalInteractivityTest.CanNavigateBetweenStaticPagesViaEnhancedNav" --logger "console;verbosity=normal"Coverage is limited to the two existing browser-configuration Facts and adjacent navigation controls, not the full Components suite or all render modes.
Fixes: N/A. No open tracking issue was identified for this coverage-only follow-up. Related historical context: #67067 (closed) and #67387 (merged). This draft does not claim to fix or close either.