Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[browser][wbt] Debug InnerSendMessageToServerAsync #100182

Closed
wants to merge 4 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions src/mono/wasm/Wasm.Build.Tests/Blazor/BlazorWasmTestBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -209,10 +209,13 @@ public async Task BlazorRunTest(string runArgs,

_testOutput.WriteLine("Waiting for page to load");
await page.WaitForLoadStateAsync(LoadState.DOMContentLoaded, new () { Timeout = 1 * 60 * 1000 });
_testOutput.WriteLine("MF after DOMContentLoaded");

if (runOptions.CheckCounter)
{
_testOutput.WriteLine("MF before text=Counter");
await page.Locator("text=Counter").ClickAsync();
_testOutput.WriteLine("MF after text=Counter");
var txt = await page.Locator("p[role='status']").InnerHTMLAsync();
Assert.Equal("Current count: 0", txt);

Expand All @@ -223,10 +226,16 @@ public async Task BlazorRunTest(string runArgs,
}

if (runOptions.Test is not null)
{
_testOutput.WriteLine("MF before Test");
await runOptions.Test(page);
_testOutput.WriteLine("MF after Test");
}

_testOutput.WriteLine("MF before 10s delay");
_testOutput.WriteLine($"Waiting for additional 10secs to see if any errors are reported");
await Task.Delay(10_000);
_testOutput.WriteLine("MF after 10s delay");

void OnConsoleMessage(IPage page, IConsoleMessage msg)
{
Expand Down