Skip to content

Commit 60e6e3a

Browse files
extend tests to restore original state (#55942)
1 parent a9bb868 commit 60e6e3a

File tree

1 file changed

+10
-0
lines changed
  • webdriver/tests/bidi/emulation/set_network_conditions

1 file changed

+10
-0
lines changed

webdriver/tests/bidi/emulation/set_network_conditions/contexts.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,12 @@ async def test_restores_to_user_contexts_when_removed(bidi_session,
113113

114114
assert not await get_navigator_online(affected_context)
115115

116+
await bidi_session.emulation.set_network_conditions(
117+
network_conditions=None,
118+
user_contexts=[affected_user_context])
119+
120+
assert await get_navigator_online(affected_context)
121+
116122

117123
async def test_overrides_global(bidi_session, get_navigator_online,
118124
affected_user_context):
@@ -169,3 +175,7 @@ async def test_restores_to_global_when_removed(bidi_session,
169175
contexts=[affected_context["context"]])
170176

171177
assert not await get_navigator_online(affected_context)
178+
179+
await bidi_session.emulation.set_network_conditions(network_conditions=None)
180+
181+
assert await get_navigator_online(affected_context)

0 commit comments

Comments
 (0)