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 Nov 20, 2024
1 parent c2c2818 commit 8718cad
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 @@ -49,10 +49,7 @@ async def test_browsingContext_close_last_command(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 8718cad

Please sign in to comment.