@@ -442,7 +442,7 @@ def render_content(tab):
442
442
443
443
selected_tab = self .wait_for_element_by_css_selector ('#tab-1' )
444
444
selected_tab .click ()
445
- time .sleep (2 )
445
+ time .sleep (1 )
446
446
self .wait_for_text_to_equal ('#tabs-content' , 'Test content 1' )
447
447
448
448
def test_tabs_with_children_undefined (self ):
@@ -531,6 +531,7 @@ def on_click(n_clicks):
531
531
EC .visibility_of_element_located ((By .CSS_SELECTOR , "#graph-one .main-svg" ))
532
532
)
533
533
534
+ time .sleep (1 )
534
535
self .snapshot ("Tabs 1 rendered " )
535
536
536
537
button_two .click ()
@@ -540,6 +541,7 @@ def on_click(n_clicks):
540
541
EC .visibility_of_element_located ((By .CSS_SELECTOR , "#graph-two .main-svg" ))
541
542
)
542
543
544
+ time .sleep (1 )
543
545
self .snapshot ("Tabs 2 rendered " )
544
546
545
547
def test_tabs_without_value (self ):
@@ -853,11 +855,11 @@ def update_graph(n_clicks):
853
855
button = self .wait_for_element_by_css_selector ('#button' )
854
856
self .snapshot ('candlestick - initial' )
855
857
button .click ()
856
- time .sleep (2 )
858
+ time .sleep (1 )
857
859
self .snapshot ('candlestick - 1 click' )
858
860
859
861
button .click ()
860
- time .sleep (2 )
862
+ time .sleep (1 )
861
863
self .snapshot ('candlestick - 2 click' )
862
864
863
865
def test_graphs_with_different_figures (self ):
@@ -1251,7 +1253,7 @@ def init_output(ts, data):
1251
1253
ts = int (time .time () * 1000 )
1252
1254
time .sleep (1 )
1253
1255
self .driver .refresh ()
1254
- time .sleep (3 )
1256
+ time .sleep (2 )
1255
1257
init = self .wait_for_element_by_css_selector ('#init-output' )
1256
1258
init = json .loads (init .text )
1257
1259
self .assertAlmostEqual (ts , init .get ('ts' ), delta = 1000 )
@@ -1297,10 +1299,10 @@ def on_ts(ts, data):
1297
1299
list_btn = self .wait_for_element_by_css_selector ('#list-btn' )
1298
1300
1299
1301
obj_btn .click ()
1300
- time .sleep (3 )
1302
+ time .sleep (1 )
1301
1303
self .wait_for_text_to_equal ('#output' , json .dumps (nested ))
1302
1304
# it would of crashed the app before adding the recursive check.
1303
1305
1304
1306
list_btn .click ()
1305
- time .sleep (3 )
1307
+ time .sleep (1 )
1306
1308
self .wait_for_text_to_equal ('#output' , json .dumps (nested_list ))
0 commit comments