diff --git a/lib/PuppeteerSharp.Tests/PageTests/PageEventsPopupTests.cs b/lib/PuppeteerSharp.Tests/PageTests/PageEventsPopupTests.cs index 2c8e41acf..969df8c5e 100644 --- a/lib/PuppeteerSharp.Tests/PageTests/PageEventsPopupTests.cs +++ b/lib/PuppeteerSharp.Tests/PageTests/PageEventsPopupTests.cs @@ -63,10 +63,10 @@ await Task.WhenAll( [PuppeteerTest("page.spec.ts", "Page.Events.Popup", "should work with clicking target=_blank and with rel=opener")] [SkipBrowserFact(skipFirefox: true)] - public async Task ShouldWorkWithFakeClickingTargetBlankAndReNoopener() + public async Task ShouldWorkWithFakeClickingTargetBlankAndRelOpener() { await Page.GoToAsync(TestConstants.EmptyPage); - await Page.SetContentAsync("yo"); + await Page.SetContentAsync("yo"); var popupTaskSource = new TaskCompletionSource(); Page.Popup += (_, e) => popupTaskSource.TrySetResult(e.PopupPage); @@ -76,7 +76,7 @@ await Task.WhenAll( Page.QuerySelectorAsync("a").EvaluateFunctionAsync("a => a.click()")); Assert.False(await Page.EvaluateExpressionAsync("!!window.opener")); - Assert.False(await popupTaskSource.Task.Result.EvaluateExpressionAsync("!!window.opener")); + Assert.True(await popupTaskSource.Task.Result.EvaluateExpressionAsync("!!window.opener")); } [PuppeteerTest("page.spec.ts", "Page.Events.Popup", "should work with fake-clicking target=_blank and rel=noopener")]