File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
webdriver/tests/bidi/emulation/set_network_conditions Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff 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
117123async 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 )
You can’t perform that action at this time.
0 commit comments