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:
parent
4f3c47294e
commit
9769f57fc6
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue