@@ -23,7 +23,6 @@ def test_jl_tabs_card(dashjl):
2323
2424
2525def check_tabs_card_callbacks (runner ):
26-
2726 tab_links = runner .find_elements ("#card-tabs > div.nav-item > a.nav-link" )
2827 wait .until (lambda : tab_links [1 ].text == "Tab 2" , timeout = 4 )
2928
@@ -43,45 +42,44 @@ def check_tabs_card_callbacks(runner):
4342tab1_content <- dbcCard(
4443 dbcCardBody(
4544 list(
46- htmlP("This is tab 1!", class_name = "card-text"),
45+ htmlP("This is tab 1!", className = "card-text"),
4746 dbcButton("Click here", color = "success")
4847 )
4948 ),
50- class_name = "mt-3"
49+ className = "mt-3"
5150)
5251
5352tab2_content <- dbcCard(
5453 dbcCardBody(
5554 list(
56- htmlP("This is tab 2!", class_name = "card-text"),
55+ htmlP("This is tab 2!", className = "card-text"),
5756 dbcButton("Don't click here", color = "danger")
5857 )
5958 ),
60- class_name = "mt-3",
59+ className = "mt-3",
6160)
6261"""
6362
6463active_tab_content_jl = """
6564tab1_content = dbc_card(
6665 dbc_cardbody([
67- html_p("This is tab 1!", class_name ="card-text"),
66+ html_p("This is tab 1!", className ="card-text"),
6867 dbc_button("Click here", color="success"),
6968 ]),
70- class_name ="mt-3",
69+ className ="mt-3",
7170);
7271
7372tab2_content = dbc_card(
7473 dbc_cardbody([
75- html_p("This is tab 2!", class_name ="card-text"),
74+ html_p("This is tab 2!", className ="card-text"),
7675 dbc_button("Don't click here", color="danger"),
7776 ]),
78- class_name ="mt-3",
77+ className ="mt-3",
7978);
8079"""
8180
8281
8382def test_r_tabs_active_tab (dashr ):
84-
8583 r_app = load_r_app (
8684 (HERE .parent / "tabs" / "active_tab.R" ),
8785 "tabs" ,
@@ -92,7 +90,6 @@ def test_r_tabs_active_tab(dashr):
9290
9391
9492def test_jl_tabs_active_tab (dashjl ):
95-
9693 jl_app = load_jl_app (
9794 (HERE .parent / "tabs" / "active_tab.jl" ),
9895 "tabs" ,
@@ -103,7 +100,6 @@ def test_jl_tabs_active_tab(dashjl):
103100
104101
105102def check_tabs_active_tab_callbacks (runner ):
106-
107103 # Get julia to wait until it's loaded
108104 wait .until (lambda : len (runner .find_elements (".card" )) > 0 , timeout = 4 )
109105
0 commit comments