Skip to content

Commit 8253e07

Browse files
committed
Fix test
1 parent 2cf36d1 commit 8253e07

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/PuppeteerSharp.Tests/NetworkTests/RequestPostDataTests.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
using NUnit.Framework;
33
using PuppeteerSharp.Helpers;
44
using PuppeteerSharp.Nunit;
5+
using PuppeteerSharp.Tests.EvaluationTests;
56

67
namespace PuppeteerSharp.Tests.NetworkTests
78
{
@@ -16,7 +17,7 @@ public async Task ShouldWork()
1617
await Page.EvaluateExpressionHandleAsync("fetch('./post', { method: 'POST', body: JSON.stringify({ foo: 'bar'})})");
1718
var request = await requestTask.WithTimeout();
1819
Assert.That(request, Is.Not.Null);
19-
Assert.That(request.PostData, Is.EqualTo("{\"foo\":\"bar\"}"));
20+
Assert.That(((EvaluateTests.ComplexObjectTestClass)request.PostData).Foo, Is.EqualTo("bar"));
2021
}
2122

2223
[Test, Retry(2), PuppeteerTest("network.spec", "network Request.postData", "should be |undefined| when there is no post data")]

0 commit comments

Comments
 (0)