Skip to content
This repository was archived by the owner on Jun 3, 2024. It is now read-only.

Commit 386137e

Browse files
committed
robustify store test
1 parent 600a09f commit 386137e

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

tests/integration/store/test_component_props.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,18 @@
44
import dash
55
from dash.dependencies import Input, Output, State
66
from dash.exceptions import PreventUpdate
7+
import dash.testing.wait as wait
78
import dash_core_components as dcc
89
import dash_html_components as html
910

1011

11-
def test_stcp100_clear_data_on_all_types(store_app, dash_dcc):
12+
def test_stcp001_clear_data_on_all_types(store_app, dash_dcc):
1213
dash_dcc.start_server(store_app)
1314

1415
assert dash_dcc.wait_for_contains_text("#output", store_app.uuid)
1516

1617
dash_dcc.multiple_click("#btn", 3)
17-
assert dash_dcc.get_local_storage() == {"n_clicks": 3}
18+
wait.until(lambda: dash_dcc.get_local_storage() == {"n_clicks": 3}, timeout=1)
1819

1920
# button click sets clear_data=True on all type of stores
2021
dash_dcc.find_element("#clear-btn").click()
@@ -28,7 +29,7 @@ def test_stcp100_clear_data_on_all_types(store_app, dash_dcc):
2829
), "set clear_data=True should clear all data in three storage types"
2930

3031

31-
def test_stcp200_modified_ts(store_app, dash_dcc):
32+
def test_stcp002_modified_ts(store_app, dash_dcc):
3233
app = dash.Dash(__name__)
3334
app.layout = html.Div(
3435
[

0 commit comments

Comments
 (0)