diff --git a/tests/async/test_assertions.py b/tests/async/test_assertions.py index b8936f4bf..774d60de5 100644 --- a/tests/async/test_assertions.py +++ b/tests/async/test_assertions.py @@ -13,8 +13,8 @@ # limitations under the License. import asyncio -import datetime import re +from datetime import datetime import pytest @@ -183,11 +183,7 @@ async def test_assertions_locator_to_have_js_property( ) await expect(page.locator("div")).to_have_js_property( "foo", - { - "a": 1, - "b": "string", - "c": datetime.datetime.fromtimestamp(1627503992000 / 1000), - }, + {"a": 1, "b": "string", "c": datetime.utcfromtimestamp(1627503992000 / 1000)}, )