File tree Expand file tree Collapse file tree 1 file changed +4
-9
lines changed
src/Components/test/E2ETest/ServerExecutionTests Expand file tree Collapse file tree 1 file changed +4
-9
lines changed Original file line number Diff line number Diff line change @@ -97,22 +97,17 @@ public void CanReadUrlHashOnlyOnceConnected()
9797 ( ) => Browser . Exists ( By . TagName ( "strong" ) ) . Text ) ;
9898 }
9999
100- [ Theory ]
101- [ InlineData ( "base/relative" , "prerendered/base/relative" ) ]
102- [ InlineData ( "/root/relative" , "/root/relative" ) ]
103- [ InlineData ( "http://absolute/url" , "http://absolute/url" ) ]
104- public async Task CanRedirectDuringPrerendering ( string destinationParam , string expectedRedirectionLocation )
100+ [ Fact ]
101+ public async Task CannotRedirectWhenExceptionIsThrownDuringPrerendering ( )
105102 {
106103 var requestUri = new Uri (
107104 _serverFixture . RootUri ,
108- "prerendered/prerendered-redirection?destination=" + destinationParam ) ;
105+ "prerendered/prerendered-redirection?destination=base/relative" ) ;
109106
110107 var httpClient = new HttpClient ( new HttpClientHandler { AllowAutoRedirect = false } ) ;
111108 var response = await httpClient . GetAsync ( requestUri ) ;
112109
113- var expectedUri = new Uri ( _serverFixture . RootUri , expectedRedirectionLocation ) ;
114- Assert . Equal ( HttpStatusCode . Redirect , response . StatusCode ) ;
115- Assert . Equal ( expectedUri , response . Headers . Location ) ;
110+ Assert . Equal ( HttpStatusCode . InternalServerError , response . StatusCode ) ;
116111 }
117112
118113 [ Theory ]
You can’t perform that action at this time.
0 commit comments