Skip to content

Commit

Permalink
wait for the tabs to be visible
Browse files Browse the repository at this point in the history
  • Loading branch information
lfoppiano committed Dec 15, 2024
1 parent a52276b commit 6715444
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/test_rendering_text.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ def go_to_app(page: Page, streamlit_app: StreamlitRunner):
page.goto(streamlit_app.server_url)
# Wait for app to load
page.get_by_role("img", name="Running...").is_hidden()
page.get_by_text("tab1").wait_for(state="visible")
page.get_by_text("tab2").wait_for(state="visible")


def test_should_render_template_check_container_size(page: Page):
Expand Down
2 changes: 2 additions & 0 deletions tests/test_resolution_boost.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ def go_to_app(page: Page, streamlit_app: StreamlitRunner):
page.goto(streamlit_app.server_url)
# Wait for app to load
page.get_by_role("img", name="Running...").is_hidden()
page.get_by_text("tab 1").wait_for(state="visible")
page.get_by_text("tab 2").wait_for(state="visible")


def test_resolution_boost(page: Page):
Expand Down
2 changes: 2 additions & 0 deletions tests/test_tabs.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ def go_to_app(page: Page, streamlit_app: StreamlitRunner):
page.goto(streamlit_app.server_url)
# Wait for app to load
page.get_by_role("img", name="Running...").is_hidden()
page.get_by_text("tab1").wait_for(state="visible")
page.get_by_text("tab2").wait_for(state="visible")


def test_should_render_template_check_container_size(page: Page):
Expand Down
2 changes: 2 additions & 0 deletions tests/test_tabs_2.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ def go_to_app(page: Page, streamlit_app: StreamlitRunner):
page.goto(streamlit_app.server_url)
# Wait for app to load
page.get_by_role("img", name="Running...").is_hidden()
page.get_by_text("tab1").wait_for(state="visible")
page.get_by_text("tab2").wait_for(state="visible")


def test_should_render_template_check_container_size(page: Page):
Expand Down

0 comments on commit 6715444

Please sign in to comment.