@@ -43,7 +43,7 @@ public void CachesResourcesAfterFirstLoad()
4343 Navigate ( "/" ) ;
4444 WaitUntilLoaded ( ) ;
4545 var initialResourcesRequested = GetAndClearRequestedPaths ( ) ;
46- Assert . NotEmpty ( initialResourcesRequested . Where ( path => path . EndsWith ( "/blazor .boot.json ", StringComparison . Ordinal ) ) ) ;
46+ Assert . NotEmpty ( initialResourcesRequested . Where ( path => path . Contains ( " .boot.js ", StringComparison . Ordinal ) ) ) ;
4747 Assert . NotEmpty ( initialResourcesRequested . Where ( path =>
4848 path . Contains ( "/dotnet.native." , StringComparison . Ordinal ) &&
4949 path . EndsWith ( ".wasm" , StringComparison . Ordinal ) ) ) ;
@@ -52,14 +52,14 @@ public void CachesResourcesAfterFirstLoad()
5252 ! path . Contains ( "/dotnet.native." , StringComparison . Ordinal ) &&
5353 path . EndsWith ( ".wasm" , StringComparison . Ordinal ) ) ) ;
5454
55- // On subsequent loads, we skip the items referenced from blazor.boot.json
55+ // On subsequent loads, we skip the items referenced from blazor.boot.json or dotnet.boot.js
5656 // which includes .wasm (original .dll) files and dotnet.native.[fingerprint].wasm
5757 Navigate ( "about:blank" ) ;
5858 Browser . Equal ( string . Empty , ( ) => Browser . Title ) ;
5959 Navigate ( "/" ) ;
6060 WaitUntilLoaded ( ) ;
6161 var subsequentResourcesRequested = GetAndClearRequestedPaths ( ) ;
62- Assert . NotEmpty ( initialResourcesRequested . Where ( path => path . EndsWith ( "/blazor .boot.json ", StringComparison . Ordinal ) ) ) ;
62+ Assert . NotEmpty ( initialResourcesRequested . Where ( path => path . Contains ( " .boot.js ", StringComparison . Ordinal ) ) ) ;
6363 Assert . DoesNotContain ( subsequentResourcesRequested , path =>
6464 path . Contains ( "/dotnet.native." , StringComparison . Ordinal ) &&
6565 path . EndsWith ( ".wasm" , StringComparison . Ordinal ) ) ;
0 commit comments