Skip to content

Commit

Permalink
update e2e
Browse files Browse the repository at this point in the history
  • Loading branch information
sadym-chromium committed Dec 12, 2024
1 parent a291c5f commit ba31234
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
2 changes: 1 addition & 1 deletion tests/browsing_context/test_close.py
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ async def test_browsingContext_navigate_prompt(websocket, context_id, html,
assert resp == AnyExtending({
'error': 'unknown error',
'id': navigate_command_id,
'message': 'navigation failed',
'message': 'net::ERR_ABORTED',
'stacktrace': ANY_STR,
'type': 'error',
})
Expand Down
12 changes: 5 additions & 7 deletions tests/browsing_context/test_navigate.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ async def test_browsingContext_navigateWaitInteractive_redirect(
AnyExtending({
'id': command_id,
'error': 'unknown error',
'message': 'navigation aborted',
'message': 'navigation canceled by concurrent navigation',
'type': 'error',
}),
{
Expand Down Expand Up @@ -399,16 +399,14 @@ async def test_browsingContext_navigationStartedEvent_viaScript(
AnyExtending({
'id': command_id,
'type': 'success',
}),
{
}), {
'type': 'event',
"method": "browsingContext.navigationStarted",
"params": {
"context": context_id,
"navigation": ANY_UUID,
"timestamp": ANY_TIMESTAMP,
# TODO: Should report correct string
"url": ANY_STR,
"url": url_base,
}
}
]
Expand Down Expand Up @@ -591,7 +589,7 @@ async def test_browsingContext_navigationStarted_browsingContextClosedBeforeNavi
'id': navigate_command_id,
'type': 'error',
'error': 'unknown error',
'message': 'navigation aborted',
'message': 'net::ERR_ABORTED',
})

assert close_command_result == AnyExtending({
Expand Down Expand Up @@ -717,7 +715,7 @@ async def test_browsingContext_acceptInsecureCertsCapability_respected(
assert resp == AnyExtending({
'error': 'unknown error',
'id': command_id,
'message': 'navigation failed',
'message': 'net::ERR_CERT_AUTHORITY_INVALID',
'type': 'error',
})

Expand Down

0 comments on commit ba31234

Please sign in to comment.