Please find here attached patch for feature test fix for test case xss_checks_panels_and_query_tool_test. It fixes the following issues.
The query tool element while running on jenkins, is present on the DOM but not visible due to comparatively small page size. So handle it , would work in both cases(if element is visible or not).
The tab name handles XSS characters due to which table name <h1> is shown modified accordingly in the tab name.