Skip to content

Commit b6585cc

Browse files
ilonatommymaraf
andauthored
[mt][browser] Prevent SignalRClientTests fail with "PlaywrightException: Target closed" (#99537)
* Wait on network idle (longer time) instead of just load the DOM. * Revert most of CI seedup * Add fixed delay. * Trigger the test-related actiont after the app is rendered * Fix bool arg * Update src/mono/wasm/testassets/BlazorHostedApp/BlazorHosted.Client/Pages/Chat.razor Co-authored-by: Marek Fišera <[email protected]> * Revert WBT runs limitation. --------- Co-authored-by: Marek Fišera <[email protected]>
1 parent 453713a commit b6585cc

File tree

1 file changed

+4
-2
lines changed
  • src/mono/wasm/testassets/BlazorHostedApp/BlazorHosted.Client/Pages

1 file changed

+4
-2
lines changed

src/mono/wasm/testassets/BlazorHostedApp/BlazorHosted.Client/Pages/Chat.razor

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,11 @@
2727
private List<string> chatMessages = new List<string>();
2828
private string wrongQueryError = "Query string with parameters 'message' and 'transport' are required";
2929

30-
protected override void OnInitialized()
30+
protected override void OnAfterRender(bool firstRender)
3131
{
32-
Helper.TestOutputWriteLine($"OnInitialized on CurrentManagedThreadId={Environment.CurrentManagedThreadId}");
32+
base.OnAfterRender(firstRender);
33+
34+
Helper.TestOutputWriteLine($"OnAfterRender on CurrentManagedThreadId={Environment.CurrentManagedThreadId}");
3335
GetQueryParameters();
3436
}
3537

0 commit comments

Comments
 (0)