We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7dc8b32 commit 3fea01eCopy full SHA for 3fea01e
tests/async/test_defaultbrowsercontext.py
@@ -111,7 +111,7 @@ async def test_context_add_cookies_should_work(
111
]
112
)
113
assert await page.evaluate("() => document.cookie") == "username=John Doe"
114
- assert await page.context.cookies() == [
+ assert _filter_cookies(await page.context.cookies()) == [
115
{
116
"name": "username",
117
"value": "John Doe",
@@ -127,7 +127,7 @@ async def test_context_add_cookies_should_work(
127
128
def _filter_cookies(cookies: Sequence[Cookie]) -> List[Cookie]:
129
return list(
130
- filter(lambda cookie: cookie["domain"] != "copilot.microsoft.com", cookies)
+ filter(lambda cookie: not cookie["domain"].endswith("microsoft.com"), cookies)
131
132
133
0 commit comments