Skip to content

Commit

Permalink
fix test_browsingContext_close_last
Browse files Browse the repository at this point in the history
  • Loading branch information
sadym-chromium committed May 31, 2024
1 parent 4b70c8c commit f30172c
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions tests/browsing_context/test_close.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,7 @@ async def test_browsingContext_close_last(websocket, context_id):

try:
result = await get_tree(websocket)
assert result == AnyExtending(
{'contexts': [{
"context": context_id,
}]})
assert result['contexts'] == []
except websockets.exceptions.ConnectionClosedError:
# Chromedriver closes the connection after the last context (not
# counting the mapper tab) is closed. NodeJS runner does not.
Expand Down

0 comments on commit f30172c

Please sign in to comment.