mirror of
https://github.com/home-assistant/frontend.git
synced 2026-07-28 17:07:12 +00:00
fe8f32423f
Fix race in demo e2e sidebar helper on narrow viewports openDemoSidebar decided whether the sidebar was behind a modal drawer by sampling ha-menu-button visibility. That element renders nothing until its Lit contexts resolve, so right after load it reads as hidden on the narrow layout too. The helper then took the wide-layout branch, never opened the drawer, and the following panel assertion waited out its timeout on an attached-but-hidden #sidebar-panel-map. Read the layout from ha-drawer's type instead, which home-assistant-main sets while committing its first render, and wait for the drawer to report open after clicking the menu button.