Skip to content

Commit 653bea8

Browse files
committed
fix test
1 parent d689206 commit 653bea8

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

tests/integration/renderer/test_component_as_prop.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -358,9 +358,13 @@ def demo(n_clicks):
358358

359359
dash_duo.wait_for_element("#add-option").click()
360360
for i in range(1, n + 2):
361-
dash_duo.wait_for_text_to_equal(f"#options label:nth-child({i}) span", "")
361+
dash_duo.wait_for_text_to_equal(
362+
f"#options label:nth-child({i}) .dash-options-list-option-text span", ""
363+
)
362364
dash_duo.wait_for_element(f"#options label:nth-child({i}) button").click()
363-
dash_duo.wait_for_text_to_equal(f"#options label:nth-child({i}) span", "1")
365+
dash_duo.wait_for_text_to_equal(
366+
f"#options label:nth-child({i}) .dash-options-list-option-text span", "1"
367+
)
364368

365369

366370
@flaky(max_runs=3)

0 commit comments

Comments
 (0)