test(cookies): Adjust cookies unit tests to the new changes

This commit is contained in:
Karim shoair
2025-05-10 20:08:31 +03:00
parent bf72678480
commit 3268617240
4 changed files with 10 additions and 4 deletions
+2 -1
View File
@@ -57,7 +57,8 @@ class TestPlayWrightFetcherAsync:
async def test_cookies_loading(self, fetcher, urls):
"""Test if cookies are set after the request"""
response = await fetcher.async_fetch(urls["cookies_url"])
assert response.cookies == {"test": "value"}
cookies = {response.cookies[0]['name']: response.cookies[0]['value']}
assert cookies == {"test": "value"}
@pytest.mark.asyncio
async def test_automation(self, fetcher, urls):