Skip to content

Commit 3acafcf

Browse files
committed
Fix e2e test
1 parent dd16d1b commit 3acafcf

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

e2e_playwright/pivot_table_test.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,11 @@ def test_cell_click_on_data_cell(page_at_app: Page):
102102
expect(container.get_by_test_id("pivot-table")).to_be_visible(timeout=15000)
103103
expect(page.get_by_text("Cell click count: 0")).to_be_visible()
104104

105+
# Wait for the component's initial perf-metrics render cycle to settle
106+
# so that any state-driven Streamlit reruns complete before we click.
107+
container.locator("[data-perf-metrics]").wait_for(timeout=10000)
108+
page.wait_for_timeout(500)
109+
105110
cell = container.get_by_test_id("pivot-data-cell").first
106111
cell.scroll_into_view_if_needed()
107112
cell.click(force=True)

0 commit comments

Comments
 (0)