From 7dca812fa3f9c7a37138038a1fcc84b7074df192 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dar=C3=ADo=20Kondratiuk?= Date: Thu, 26 Dec 2024 10:56:00 -0300 Subject: [PATCH] Bidi: Pass wait for navigation (#2848) * Bidi: Pass wait for navigation * markdown uses net8 * some fixes in the context * Ignore one test --- .github/workflows/on-push-do-docs.yml | 2 +- .../TestExpectations.local.json | 2 +- .../PageWaitForNavigationTests.cs | 14 +++----- lib/PuppeteerSharp/Bidi/BidiFrame.cs | 33 ++++++++++++++++++- lib/PuppeteerSharp/Bidi/BidiRealm.cs | 3 +- .../Bidi/Core/BrowsingContext.cs | 2 +- .../Bidi/Core/DedicatedWorkerRealm.cs | 8 ++--- lib/PuppeteerSharp/Bidi/Core/Realm.cs | 7 ++-- lib/PuppeteerSharp/Bidi/WindowRealm.cs | 16 +++++---- lib/PuppeteerSharp/Page.cs | 28 ++++++++-------- 10 files changed, 73 insertions(+), 42 deletions(-) diff --git a/.github/workflows/on-push-do-docs.yml b/.github/workflows/on-push-do-docs.yml index 1088f7768..26843e88f 100644 --- a/.github/workflows/on-push-do-docs.yml +++ b/.github/workflows/on-push-do-docs.yml @@ -9,7 +9,7 @@ jobs: - name: Setup .NET uses: actions/setup-dotnet@v3 with: - dotnet-version: 7.0.x + dotnet-version: 8.0.x - name: Run MarkdownSnippets run: | dotnet tool install --global MarkdownSnippets.Tool diff --git a/lib/PuppeteerSharp.Nunit/TestExpectations/TestExpectations.local.json b/lib/PuppeteerSharp.Nunit/TestExpectations/TestExpectations.local.json index 38951f7a5..30c546b55 100644 --- a/lib/PuppeteerSharp.Nunit/TestExpectations/TestExpectations.local.json +++ b/lib/PuppeteerSharp.Nunit/TestExpectations/TestExpectations.local.json @@ -122,7 +122,7 @@ }, { "comment": "This is part of organizing the webdriver bidi implementation, We will remove it one by one", - "testIdPattern": "[navigation.spec] navigation Page.waitForNavigation*", + "testIdPattern": "[navigation.spec] navigation Page.waitForNavigation*should work with clicking on anchor links", "platforms": [ "darwin", "linux", diff --git a/lib/PuppeteerSharp.Tests/NavigationTests/PageWaitForNavigationTests.cs b/lib/PuppeteerSharp.Tests/NavigationTests/PageWaitForNavigationTests.cs index e2b9e0d15..8a02b80f1 100644 --- a/lib/PuppeteerSharp.Tests/NavigationTests/PageWaitForNavigationTests.cs +++ b/lib/PuppeteerSharp.Tests/NavigationTests/PageWaitForNavigationTests.cs @@ -144,19 +144,13 @@ public async Task ShouldWorkWhenSubframeIssuesWindowStop() var frameAttachedTaskSource = new TaskCompletionSource