@@ -1626,30 +1626,30 @@ def display_content(value):
1626
1626
[Input ('outer-controls' , 'value' )])
1627
1627
def display_tab1_output (value ):
1628
1628
call_counts ['tab1' ].value += 1
1629
- return 'You have selected "{}"' .format (value )
1629
+ return 'Selected "{}" in tab 1 ' .format (value )
1630
1630
1631
1631
@app .callback (Output ('tab-2-output' , 'children' ),
1632
1632
[Input ('outer-controls' , 'value' )])
1633
1633
def display_tab2_output (value ):
1634
1634
call_counts ['tab2' ].value += 1
1635
- return 'You have selected "{}"' .format (value )
1635
+ return 'Selected "{}" in tab 2 ' .format (value )
1636
1636
1637
1637
self .startServer (app )
1638
1638
self .wait_for_element_by_css_selector ('#tab-output' )
1639
1639
time .sleep (2 )
1640
1640
1641
1641
self .assertEqual (call_counts ['tab1' ].value , 1 )
1642
1642
self .assertEqual (call_counts ['tab2' ].value , 0 )
1643
- self .wait_for_text_to_equal ('#tab-output' , 'You have selected "a"' )
1644
- self .wait_for_text_to_equal ('#tab-1-output' , 'You have selected "a"' )
1643
+ self .wait_for_text_to_equal ('#tab-output' , 'Selected "a" in tab 1 ' )
1644
+ self .wait_for_text_to_equal ('#tab-1-output' , 'Selected "a" in tab 1 ' )
1645
1645
1646
1646
(self .driver .find_elements_by_css_selector (
1647
1647
'input[type="radio"]'
1648
1648
)[1 ]).click ()
1649
1649
time .sleep (2 )
1650
1650
1651
- self .wait_for_text_to_equal ('#tab-output' , 'You have selected "a"' )
1652
- self .wait_for_text_to_equal ('#tab-2-output' , 'You have selected "a"' )
1651
+ self .wait_for_text_to_equal ('#tab-output' , 'Selected "a" in tab 2 ' )
1652
+ self .wait_for_text_to_equal ('#tab-2-output' , 'Selected "a" in tab 2 ' )
1653
1653
self .assertEqual (call_counts ['tab1' ].value , 1 )
1654
1654
self .assertEqual (call_counts ['tab2' ].value , 1 )
1655
1655
0 commit comments