diff --git a/tests/tests_app_examples/test_template_streamlit_ui.py b/tests/tests_app_examples/test_template_streamlit_ui.py index e2c3330529..30d6c38070 100644 --- a/tests/tests_app_examples/test_template_streamlit_ui.py +++ b/tests/tests_app_examples/test_template_streamlit_ui.py @@ -19,7 +19,7 @@ def test_template_streamlit_ui_example_cloud() -> None: def click_button(*_, **__): button = view_page.frame_locator("iframe").locator('button:has-text("Should print to the terminal ?")') - button.wait_for(timeout=5 * 1000) + if button.all_text_contents() == ["Should print to the terminal ?"]: button.click() return True