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
+3 -1
View File
@@ -51,7 +51,9 @@ class TestPlayWrightFetcher:
def test_cookies_loading(self, fetcher):
"""Test if cookies are set after the request"""
assert fetcher.fetch(self.cookies_url).cookies == {"test": "value"}
response = fetcher.fetch(self.cookies_url)
cookies = {response.cookies[0]['name']: response.cookies[0]['value']}
assert cookies == {"test": "value"}
def test_automation(self, fetcher):
"""Test if automation break the code or not"""