Quarantine BlazorTemplates.Tests.BlazorWebTemplateTest.BlazorWebTemplate_CanUsePasskeys and BlazorWebTemplate_CanRequireConfirme [Content t
- Dominant language
- C#
- Stars
- 38.4k
- Forks
- 10.9k
- Avg merge
- 2d 5h
- Merged PRs (30d)
- 276
Description
## Failing Test(s)
- `BlazorTemplates.Tests.BlazorWebTemplateTest.BlazorWebTemplate_CanUsePasskeys`
- `BlazorTemplates.Tests.BlazorWebTemplateTest.BlazorWebTemplate_CanRequireConfirmedEmail`
## Failure Frequency
Failed 2 times over the past 30 days (each test).
## Error Message
```text
Project new blazor --no-restore -int None -au Individual failed to publish. Exit code 1.
D:\a\_work\1\s\src\ProjectTemplates\test\Templates.Blazor.Tests\bin\Release\net11.0\TestTemplates\.dotnet\dotnet.exe publish -c Release /bl
StdErr:
StdOut: Determining projects to restore...
All projects are up-to-date for restore.
D:\a\_work\1\s\.dotnet\sdk\11.0.100-rc.1.26420.103\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.RuntimeIdentifierInference.targets(385,5): message NETSDK1057: You are using a preview version of .NET. See: (aka.ms/redacted) [D:\a\_work\1\s\src\ProjectTemplates\test\Templates.Blazor.Tests\bin\Release\net11.0\TestTemplates\AspNet.quxjwqu0bttp\AspNet.quxjwqu0bttp.csproj]
D:\a\_work\1\s\src\ProjectTemplates\test\Templates.Blazor.Tests\bin\Release\net11.0\TestTemplates\AspNet.quxjwqu0bttp\Components\Account\Pages\Manage\EnableAuthenticator.razor(19,17): error RZ1021: Markup in a code block must start with a tag and all start tags must be matched with end tags. Do not use unclosed tags like "
". Instead use self-closing tags like "
".
```
## Stacktrace
```text
at Templates.Test.Helpers.Project.RunDotNetPublishAsync(IDictionary`2 packageOptions, String additionalArgs, Boolean noRestore) in /_/src/ProjectTemplates/Shared/Project.cs:line 183
at BlazorTemplates.Tests.BlazorTemplateTest.CreateBuildPublishAsync(String auth, String[] args, String targetFramework, Func`2 getTargetProject, Boolean onlyCreate) in /_/src/ProjectTemplates/test/Templates.Blazor.Tests/BlazorTemplateTest.cs:line 50
at BlazorTemplates.Tests.BlazorWebTemplateTest.BlazorWebTemplate_CanUsePasskeys(BrowserKind browserKind) in /_/src/ProjectTemplates/test/Templates.Blazor.Tests/BlazorWebTemplateTest.cs:line 64
at BlazorTemplates.Tests.BlazorWebTemplateTest.BlazorWebTemplate_CanRequireConfirmedEmail(BrowserKind browserKind) in /_/src/ProjectTemplates/test/Templates.Blazor.Tests/BlazorWebTemplateTest.cs:line 284
```
## Logs
```text
Project new blazor --no-restore -int None -au Individual failed to publish. Exit code 1.
StdOut: Determining projects to restore...
All projects are up-to-date for restore.
message NETSDK1057: You are using a preview version of .NET. See: (aka.ms/redacted)
error RZ1021: Markup in a code block must start with a tag and all start tags must be matched with end tags. Do not use unclosed tags like "
". Instead use self-closing tags like "
". [.../Components/Account/Pages/Manage/EnableAuthenticator.razor(19,17)]
```
(A representative excerpt is shown above for both tests, which fail identically during template publish; the full Helix console/work-item log was not retrievable from within this run's environment.)
## Build
https://dev.azure.com/dnceng-public/public/_build/results?buildId=1576467&view=results
> Generated by [Daily Test Quarantine Management](https://github.com/dotnet/aspnetcore/actions/runs/34110446127) · copilot · auto · 607.1 AIC · ⌖ 13.3 AIC · ⊞ 4.5K · [◷](https://github.com/search?q=repo%3Adotnet%2Faspnetcore+is%3Aissue+%22gh-aw-workflow-call-id%3A+dotnet%2Faspnetcore%2Ftest-quarantine%22&type=issues)
Contributor guide
Research direction
Start with the failing tests in src/ProjectTemplates/test/Templates.Blazor.Tests/BlazorWebTemplateTest.cs and the generated Components/Account/Pages/Manage/EnableAuthenticator.razor path shown in the error. Trace that generated file back to the Blazor template source and run the two named tests. Done means both tests publish successfully without RZ1021.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- testing, web-dev
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 68/100