diff --git a/lib/PuppeteerSharp.Tests/NavigationTests/PageGotoTests.cs b/lib/PuppeteerSharp.Tests/NavigationTests/PageGotoTests.cs index 442dcebd9..a4c73f8f8 100644 --- a/lib/PuppeteerSharp.Tests/NavigationTests/PageGotoTests.cs +++ b/lib/PuppeteerSharp.Tests/NavigationTests/PageGotoTests.cs @@ -163,7 +163,7 @@ public void ShouldFailWhenNavigatingToBadUrl() } else { - Assert.That(exception.Message, Does.Contain("invalid URL")); + Assert.That(exception.Message, Does.Contain("NS_ERROR_MALFORMED_URI")); } }