From 2413ffb4f01d277ebd0d881dfc1f229f23b66d8d Mon Sep 17 00:00:00 2001 From: Colin Maudry Date: Tue, 23 Jun 2026 16:05:49 +0200 Subject: [PATCH] =?UTF-8?q?test(tableaux):=20barre=20miroir=20et=20en-t?= =?UTF-8?q?=C3=AAte=20sticky=20sur=20/tableau=20#82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 4.8 --- tests/test_tableau_hscroll.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 tests/test_tableau_hscroll.py diff --git a/tests/test_tableau_hscroll.py b/tests/test_tableau_hscroll.py new file mode 100644 index 0000000..6699c89 --- /dev/null +++ b/tests/test_tableau_hscroll.py @@ -0,0 +1,16 @@ +from dash.testing.composite import DashComposite + + +def test_tableau_hscroll_bar_present(dash_duo: DashComposite): + """La barre miroir est injectée et l'en-tête est collant sur /tableau.""" + from src.app import app + + dash_duo.start_server(app) + dash_duo.wait_for_page(f"{dash_duo.server_url}/tableau") + dash_duo.wait_for_element(".marches_table", timeout=20) + # Barre miroir injectée par table_hscroll.js + dash_duo.wait_for_element(".marches_table .dt-hscroll", timeout=10) + + header = dash_duo.find_element(".marches_table th.dash-header") + position = header.value_of_css_property("position") + assert position == "sticky"