Skip to content

Commit f0274ca

Browse files
committed
Test of custom router with POST require clicking a button to trigger 404.
1 parent 3959210 commit f0274ca

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Components/test/E2ETest/ServerRenderingTests/NoInteractivityTest.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -354,6 +354,7 @@ public void NotFoundSetOnFormSubmit_ResponseNotStarted_CustomRouter_SSR()
354354
{
355355
string testUrl = $"{ServerPathBase}/reexecution/post-not-found-ssr?useCustomRouter=true";
356356
Navigate(testUrl);
357+
Browser.FindElement(By.Id("not-found-form")).FindElement(By.TagName("button")).Click();
357358

358359
AssertReExecutionPageRendered();
359360
AssertUrlNotChanged(testUrl);
@@ -388,6 +389,7 @@ public void NotFoundSetOnFormSubmit_ResponseStarted_CustomRouter_SSR()
388389
{
389390
string testUrl = $"{ServerPathBase}/reexecution/post-not-found-ssr-streaming?useCustomRouter=true";
390391
Navigate(testUrl);
392+
Browser.FindElement(By.Id("not-found-form")).FindElement(By.TagName("button")).Click();
391393

392394
AssertReExecutionPageRendered();
393395
AssertUrlNotChanged(testUrl);

0 commit comments

Comments
 (0)