Skip to content

Commit

Permalink
fix: tests in jupyter notebook being very flaky (#309)
Browse files Browse the repository at this point in the history
  • Loading branch information
iisakkirotko authored Sep 29, 2023
1 parent 13652f1 commit 115d423
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions solara/test/pytest_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -424,6 +424,7 @@ def run(f: Callable):
\n"""
write_notebook([code_setup, code_from_function(f)], notebook_path)
page_session.goto(base_url + f"/notebooks/notebook.ipynb?v={count}")
page_session.locator(".prompt_container >> nth=0").wait_for()
page_session.locator("text=Kernel starting, please wait...").wait_for(state="detached")
page_session.locator("Kernel Ready").wait_for(state="detached")
page_session.locator('css=[data-jupyter-action="jupyter-notebook:run-cell-and-select-next"]').click()
Expand Down

0 comments on commit 115d423

Please sign in to comment.