There was an error while loading. Please reload this page.
1 parent dd16d1b commit 3acafcfCopy full SHA for 3acafcf
1 file changed
e2e_playwright/pivot_table_test.py
@@ -102,6 +102,11 @@ def test_cell_click_on_data_cell(page_at_app: Page):
102
expect(container.get_by_test_id("pivot-table")).to_be_visible(timeout=15000)
103
expect(page.get_by_text("Cell click count: 0")).to_be_visible()
104
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
+
110
cell = container.get_by_test_id("pivot-data-cell").first
111
cell.scroll_into_view_if_needed()
112
cell.click(force=True)
0 commit comments