@@ -35,7 +35,6 @@ protected override void InitializeAsyncCore()
3535 [ InlineData ( "render-throw" ) ]
3636 [ InlineData ( "afterrender-sync-throw" ) ]
3737 [ InlineData ( "afterrender-async-throw" ) ]
38- [ QuarantinedTest ( "https://github.com/dotnet/aspnetcore/issues/57588" ) ]
3938 public void ComponentLifecycleMethodThrowsExceptionTerminatesTheCircuit ( string id )
4039 {
4140 Browser . MountTestComponent < ReliabilityComponent > ( ) ;
@@ -47,14 +46,20 @@ public void ComponentLifecycleMethodThrowsExceptionTerminatesTheCircuit(string i
4746 // Triggering an error will show the exception UI
4847 Browser . Exists ( By . CssSelector ( "#blazor-error-ui[style='display: block;']" ) ) ;
4948
49+ // Dismiss the error UI by clicking the dismiss button
50+ var dismissButton = Browser . Exists ( By . CssSelector ( "#blazor-error-ui .dismiss" ) ) ;
51+ dismissButton . Click ( ) ;
52+
53+ // Wait for error UI to be hidden
54+ Browser . Exists ( By . CssSelector ( "#blazor-error-ui[style='display: none;']" ) ) ;
55+
5056 // Clicking the button again will trigger a server disconnect
5157 targetButton . Click ( ) ;
5258
5359 AssertLogContains ( "Connection disconnected." ) ;
5460 }
5561
5662 [ Fact ]
57- [ QuarantinedTest ( "https://github.com/dotnet/aspnetcore/issues/57588" ) ]
5863 public void ComponentDisposeMethodThrowsExceptionTerminatesTheCircuit ( )
5964 {
6065 Browser . MountTestComponent < ReliabilityComponent > ( ) ;
@@ -69,6 +74,13 @@ public void ComponentDisposeMethodThrowsExceptionTerminatesTheCircuit()
6974 targetButton . Click ( ) ;
7075 Browser . Exists ( By . CssSelector ( "#blazor-error-ui[style='display: block;']" ) ) ;
7176
77+ // Dismiss the error UI by clicking the dismiss button
78+ var dismissButton = Browser . Exists ( By . CssSelector ( "#blazor-error-ui .dismiss" ) ) ;
79+ dismissButton . Click ( ) ;
80+
81+ // Wait for error UI to be hidden
82+ Browser . Exists ( By . CssSelector ( "#blazor-error-ui[style='display: none;']" ) ) ;
83+
7284 // Clicking it again causes the circuit to disconnect
7385 targetButton . Click ( ) ;
7486 AssertLogContains ( "Connection disconnected." ) ;
0 commit comments