File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed
Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -101,7 +101,10 @@ public async Task Rendering_ComponentWithJsInteropThrows()
101101 } ) ) ;
102102
103103 // Assert
104- Assert . Equal ( "JavaScript interoperability is not supported in the current environment." , exception . Message ) ;
104+ Assert . Equal ( "JavaScript interop calls cannot be issued during server-side prerendering, " +
105+ "because the page has not yet loaded in the browser. Prerendered components must wrap any JavaScript " +
106+ "interop calls in conditional logic to ensure those interop calls are not attempted during prerendering." ,
107+ exception . Message ) ;
105108 }
106109
107110 [ Fact ]
Original file line number Diff line number Diff line change @@ -481,6 +481,9 @@ public async Task ApplicationAssemblyPartIsListedAsFirstAssembly()
481481 var expected = new [ ]
482482 {
483483 "BasicWebSite" ,
484+ "Microsoft.AspNetCore.Components.Server" ,
485+ "Microsoft.AspNetCore.SpaServices" ,
486+ "Microsoft.AspNetCore.SpaServices.Extensions" ,
484487 "Microsoft.AspNetCore.Mvc.TagHelpers" ,
485488 "Microsoft.AspNetCore.Mvc.Razor" ,
486489 } ;
You can’t perform that action at this time.
0 commit comments