Skip to content

Commit 4ea16ef

Browse files
committed
Introduce a delay on the test
1 parent d500b4d commit 4ea16ef

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public class ErrorHandlingTest(BrowserFixture browserFixture, BasicTestAppServer
2121
{
2222

2323
[Fact]
24-
public void RendersExceptionFromComponent()
24+
public async Task RendersExceptionFromComponent()
2525
{
2626
GoTo("Throws?suppress-autostart=true");
2727

@@ -33,6 +33,7 @@ public void RendersExceptionFromComponent()
3333
item => Assert.Equal("An error occurred while processing your request.", item.Text));
3434
Browser.Equal("False", () => Browser.FindElement(By.Id("is-interactive-server")).Text);
3535
Browser.Click(By.Id("call-blazor-start"));
36+
await Task.Delay(3000);
3637
Browser.Exists(By.Id("blazor-started"));
3738
Browser.Equal("False", () => Browser.FindElement(By.Id("is-interactive-server")).Text);
3839
}

0 commit comments

Comments
 (0)