fix response status assertion on python example (#11723)

This commit is contained in:
Leonardo Henrique Tsuda 2022-01-28 16:50:14 -03:00 committed by GitHub
parent 312ab57f02
commit 7dc2dce709
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3651,7 +3651,7 @@ response = response_info.value
return response.ok
# or with a lambda
with page.expect_response(lambda response: response.url == "https://example.com" and response.status === 200) as response_info:
with page.expect_response(lambda response: response.url == "https://example.com" and response.status == 200) as response_info:
page.click("input")
response = response_info.value
return response.ok