Removes timeout from streamlit e2e test (#14667)

* Removes timeout from streamlit e2e test
We have a timeout on the app view which waits for the button but it causes a refresh on the page which causes playwright to miss the button on each refresh.
we can remove the timeout altogether since we have a time limit on the test itself in the CI setup

Co-authored-by: thomas chaton <thomas@grid.ai>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
Noha Alon 2022-09-12 21:00:46 +03:00 committed by GitHub
parent 4f3c47294e
commit 9769f57fc6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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