Просмотр исходного кода

test: fix `scroll_to` && chart test bug

wangweimin 4 лет назад
Родитель
Сommit
afddf6d882
2 измененных файлов с 3 добавлено и 2 удалено
  1. 1 1
      test/11.charts.py
  2. 2 1
      test/template.py

+ 1 - 1
test/11.charts.py

@@ -370,7 +370,7 @@ def target():
 
 
 def test(server_proc: subprocess.Popen, browser: Chrome):
-    time.sleep(3)
+    time.sleep(6)
     percySnapshot(browser=browser, name='bokeh')
 
 

+ 2 - 1
test/template.py

@@ -116,7 +116,8 @@ def basic_output():
     ])
 
     put_markdown('### Code')
-    put_code(json.dumps(dict(name='pywebio', author='wangweimin'), indent=4), 'json')
+    with use_scope('scroll_basis'):
+        put_code(json.dumps(dict(name='pywebio', author='wangweimin'), indent=4), 'json')
 
     put_text('move ⬆ code block to screen ... :')
     with use_scope('scroll_basis_btns'):