File tree 2 files changed +7
-1
lines changed 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()
101
101
} ) ) ;
102
102
103
103
// 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 ) ;
105
108
}
106
109
107
110
[ Fact ]
Original file line number Diff line number Diff line change @@ -481,6 +481,9 @@ public async Task ApplicationAssemblyPartIsListedAsFirstAssembly()
481
481
var expected = new [ ]
482
482
{
483
483
"BasicWebSite" ,
484
+ "Microsoft.AspNetCore.Components.Server" ,
485
+ "Microsoft.AspNetCore.SpaServices" ,
486
+ "Microsoft.AspNetCore.SpaServices.Extensions" ,
484
487
"Microsoft.AspNetCore.Mvc.TagHelpers" ,
485
488
"Microsoft.AspNetCore.Mvc.Razor" ,
486
489
} ;
You can’t perform that action at this time.
0 commit comments