Skip to content

Commit

Permalink
Fix custom elements JS initializer not being included in build output (
Browse files Browse the repository at this point in the history
…dotnet#54931)

* Fix custom elements IncludeCompileJsOutput target

* Unquarantine tests
  • Loading branch information
MackinnonBuck authored Apr 3, 2024
1 parent d7109b1 commit 7f7a5e9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<Project Sdk="Microsoft.NET.Sdk.Razor">
<Project Sdk="Microsoft.NET.Sdk.Razor">

<PropertyGroup>
<TargetFramework>$(DefaultNetCoreTargetFramework)</TargetFramework>
Expand All @@ -18,7 +18,7 @@
</ResolveStaticWebAssetsInputsDependsOn>
</PropertyGroup>

<Target Name="IncludeCompileJsOutput" BeforeTargets="_ResolveJsModuleInputs">
<Target Name="IncludeCompileJsOutput" BeforeTargets="ResolveJSModuleStaticWebAssets">
<ItemGroup>
<_JsBuildOutput Include="$(InteropWorkingDir)dist\$(Configuration)\**" Exclude="$(InteropWorkingDir)dist\.gitignore" />
</ItemGroup>
Expand Down
2 changes: 0 additions & 2 deletions src/Components/test/E2ETest/Tests/CustomElementsTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ public void CanAddAndRemoveCustomElements()
}

[Fact]
[QuarantinedTest("https://github.com/dotnet/aspnetcore/issues/54889")]
public void CanUpdateSimpleParameters()
{
app.FindElement(By.Id("add-custom-element")).Click();
Expand Down Expand Up @@ -106,7 +105,6 @@ void ValidateSimpleParameterValues(int id, int clickCount)
}

[Fact]
[QuarantinedTest("https://github.com/dotnet/aspnetcore/issues/54889")]
public void CanUpdateComplexParameters()
{
app.FindElement(By.Id("add-custom-element")).Click();
Expand Down

0 comments on commit 7f7a5e9

Please sign in to comment.