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

Commit 41e44e1

Browse files
Add test for checking disabled_className property shows in DOM
1 parent 2f449f1 commit 41e44e1

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

Diff for: tests/integration/tab/test_tabs_with_graphs.py

+10
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,13 @@ def test_graph_does_not_resize_in_tabs(dash_dcc, is_eager):
2424
children=[
2525
dcc.Tab(label="Tab One", value="tab-1-example", id="tab-1"),
2626
dcc.Tab(label="Tab Two", value="tab-2-example", id="tab-2"),
27+
dcc.Tab(
28+
label="Tab Three",
29+
value="tab-3-example",
30+
id="tab-3",
31+
disabled=True,
32+
disabled_className="disabled-tab",
33+
),
2734
],
2835
),
2936
html.Div(id="tabs-content-example"),
@@ -64,6 +71,9 @@ def render_content(tab):
6471
tab_one = dash_dcc.wait_for_element("#tab-1")
6572
tab_two = dash_dcc.wait_for_element("#tab-2")
6673

74+
# wait for disabled tab with custom className
75+
dash_dcc.wait_for_element("#tab-3.disabled-tab")
76+
6777
WebDriverWait(dash_dcc.driver, 10).until(
6878
EC.element_to_be_clickable((By.ID, "tab-2"))
6979
)

0 commit comments

Comments
 (0)