diff --git a/src/Components/Web.JS/src/Boot.WebAssembly.ts b/src/Components/Web.JS/src/Boot.WebAssembly.ts index 102bbd830b36..5fd2f2bffc46 100644 --- a/src/Components/Web.JS/src/Boot.WebAssembly.ts +++ b/src/Components/Web.JS/src/Boot.WebAssembly.ts @@ -119,7 +119,7 @@ async function boot(options?: Partial): Promise { } // Start up the application - await platform.callEntryPoint(resourceLoader.bootConfig.entryAssembly); + platform.callEntryPoint(resourceLoader.bootConfig.entryAssembly); } function invokeJSFromDotNet(callInfo: Pointer, arg0: any, arg1: any, arg2: any): any { diff --git a/src/Components/WebAssembly/testassets/StandaloneApp/wwwroot/index.html b/src/Components/WebAssembly/testassets/StandaloneApp/wwwroot/index.html index 8828febac2bf..083f2f53346a 100644 --- a/src/Components/WebAssembly/testassets/StandaloneApp/wwwroot/index.html +++ b/src/Components/WebAssembly/testassets/StandaloneApp/wwwroot/index.html @@ -18,6 +18,13 @@ 🗙 - + + diff --git a/src/Components/test/E2ETest/Tests/StandaloneAppTest.cs b/src/Components/test/E2ETest/Tests/StandaloneAppTest.cs index d94eb117f7db..2bc38a1c1a23 100644 --- a/src/Components/test/E2ETest/Tests/StandaloneAppTest.cs +++ b/src/Components/test/E2ETest/Tests/StandaloneAppTest.cs @@ -108,6 +108,22 @@ public void HasFetchDataPage() } } + [Fact] + public void IsStarted() + { + // Read from property + var jsExecutor = (IJavaScriptExecutor)Browser; + + var isStarted = jsExecutor.ExecuteScript("return window['__aspnetcore__testing__blazor_wasm__started__'];"); + if (isStarted is null) + { + throw new InvalidOperationException("Blazor wasm started value not set"); + } + + // Confirm server has started + Assert.True((bool)isStarted); + } + private void WaitUntilLoaded() { var app = Browser.Exists(By.TagName("app"));