Skip to content

Commit f3d7825

Browse files
committed
Add multi-output test.
1 parent 92eb690 commit f3d7825

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tests/test_integration.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -561,12 +561,16 @@ def on_click(n_clicks, n_clicks_timestamp):
561561

562562
return n_clicks, n_clicks_timestamp
563563

564+
self.startServer(app)
564565

565566
t = time.time()
566567

567568
btn = self.wait_for_element_by_id('output-btn')
568569
btn.click()
569570
time.sleep(1)
570571

571-
self.wait_for_text_to_equals()
572+
self.wait_for_text_to_equal('#output1', '1')
573+
output2 = self.wait_for_element_by_css_selector('#output2')
574+
575+
self.assertGreater(int(output2.text), t)
572576

0 commit comments

Comments
 (0)