File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
openwisp_controller/config/tests Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -252,7 +252,7 @@ def test_force_delete_device_with_deactivating_config(self):
252252 # to complete before trying to interact with the button,
253253 # otherwise the test may fail due to the button not being fully
254254 # visible or clickable yet.
255- time .sleep (0.5 )
255+ time .sleep (1 )
256256 delete_confirm = self .find_element (
257257 By .CSS_SELECTOR , 'form[method="post"] input[type="submit"]' , timeout = 10
258258 )
@@ -285,6 +285,11 @@ def test_force_delete_multiple_devices_with_deactivating_config(self):
285285 By .CSS_SELECTOR , '#deactivating-warning .messagelist .warning p'
286286 )
287287 self .find_element (by = By .CSS_SELECTOR , value = '#warning-ack' ).click ()
288+ # After accepting the warning, wee need to wait for the animation
289+ # to complete before trying to interact with the button,
290+ # otherwise the test may fail due to the button not being fully
291+ # visible or clickable yet.
292+ time .sleep (1 )
288293 delete_confirm = self .find_element (
289294 By .CSS_SELECTOR , 'form[method="post"] input[type="submit"]'
290295 )
You can’t perform that action at this time.
0 commit comments