So I called an API and want to verify it with toMatchObject, 39 objects passed, only this one had problems. As you can see, these strings are indentical (I did compare it on a site). I only see 1 difference is the space before key but I don't know how to correct this. Anyone experienced this can give me advices? `Error: expect(received).toMatchObject(expected)
@@ -120,11 +120,11 @@ "target_value": "<p>translated Custom option 3 - updated to Croatian</p>", }, Object { "field_name": "Help text", "source_value": "<p>You should upload image in 500x200 pixel to get the best quality - updated</p>",
"target_value": "<html><head></head><body><p>translated You should upload image in 500x200 pixel to get the best quality - updated to Croatian</p></body></html>",
"target_value": "<html><head></head><body><p>translated You should upload image in 500x200 pixel to get the best quality - updated to Croatian</p></body></html>",`
This thread is trying to answer question "Why does toMatchObject return an error even after copying the key and value from the terminal?"
Rayrun is a community for QA engineers. I am constantly looking for new ways to add value to people learning Playwright and other browser automation frameworks. If you have feedback, email [email protected].