File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ def test_dbpo001_popover_click(dash_duo):
27
27
dash_duo .start_server (app )
28
28
29
29
dash_duo .wait_for_element_by_id ("popover-target" ).click ()
30
- assert dash_duo .wait_for_element (".popover-body" ). text == "Test content"
30
+ dash_duo .wait_for_text_to_equal (".popover-body" , "Test content" , timeout = 4 )
31
31
32
32
33
33
def test_dbpo002_popover_hover (dash_duo ):
@@ -52,4 +52,4 @@ def test_dbpo002_popover_hover(dash_duo):
52
52
dash_duo .wait_for_element_by_id ("popover-target" )
53
53
)
54
54
hover .perform ()
55
- assert dash_duo .wait_for_element (".popover-body" ). text == "Test content"
55
+ dash_duo .wait_for_text_to_equal (".popover-body" , "Test content" , timeout = 4 )
Original file line number Diff line number Diff line change @@ -20,4 +20,6 @@ def test_dbtt001_tooltip_content(dash_duo):
20
20
dash_duo .wait_for_element_by_id ("tooltip-target" )
21
21
)
22
22
hover .perform ()
23
- assert dash_duo .wait_for_element (".tooltip-inner" ).text == "Test content"
23
+ dash_duo .wait_for_text_to_equal (
24
+ ".tooltip-inner" , "Test content" , timeout = 4
25
+ )
You can’t perform that action at this time.
0 commit comments