mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2026-08-19 01:15:04 -05:00
click_modal: wait up to 5s for the MuiDialog-backdrop to become invisible after clicking the modal button. MUI v7 leaves the backdrop in the DOM during the ~300ms close animation, which intercepts the next click in tests that chain modal->modal interactions. open_query_tool: the execute-query toolbar button can re-render between the visibility wait and the ActionChains.move_to_element call (Firefox/geckodriver hits this regularly). Retry the move up to 3 times on StaleElementReferenceException, refetching the element each attempt rather than reusing a stale handle. Both changes are pure test-side stability fixes; no production code or behavior is affected.