File tree Expand file tree Collapse file tree
openwisp_network_topology/tests Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -38,6 +38,7 @@ class TestRealTime(
3838 link_model = Link
3939 topology_model = Topology
4040 application = import_string (getattr (settings , "ASGI_APPLICATION" ))
41+ browser = "chromium"
4142
4243 @property
4344 def prefix (self ):
@@ -91,6 +92,7 @@ def update_topology_new_tab(self):
9192 self .web_driver .switch_to .window (self .web_driver .window_handles [- 1 ])
9293 self .web_driver .get (current_url )
9394 self .find_element ("name" , "_continue" ).click ()
95+ self .web_driver .close ()
9496 self .web_driver .switch_to .window (self .web_driver .window_handles [0 ])
9597
9698 async def test_real_time_link_status_update (self ):
@@ -165,6 +167,7 @@ async def test_node_status_update(self):
165167 len (self .web_driver .execute_script ("return graph.data;" )["nodes" ]),
166168 2 ,
167169 )
170+ await communicator .disconnect ()
168171
169172 async def test_node_link_update (self ):
170173 new_link = copy (self .link )
@@ -198,3 +201,4 @@ async def test_node_link_update(self):
198201 len (self .web_driver .execute_script ("return graph.data;" )["links" ]),
199202 1 ,
200203 )
204+ await communicator .disconnect ()
You can’t perform that action at this time.
0 commit comments