mirror of https://github.com/apache/superset.git
fix(reports): Update the element class to wait for when taking a screenshot (#28745)
(cherry picked from commit 020c79970f
)
This commit is contained in:
parent
379ccc0563
commit
9d3d6d1de7
|
@ -187,7 +187,7 @@ class WebDriverPlaywright(WebDriverProxy):
|
|||
try:
|
||||
# chart containers didn't render
|
||||
logger.debug("Wait for chart containers to draw at url: %s", url)
|
||||
slice_container_locator = page.locator(".slice_container")
|
||||
slice_container_locator = page.locator(".chart-container")
|
||||
slice_container_locator.first.wait_for()
|
||||
for slice_container_elem in slice_container_locator.all():
|
||||
slice_container_elem.wait_for()
|
||||
|
@ -377,7 +377,7 @@ class WebDriverSelenium(WebDriverProxy):
|
|||
logger.debug("Wait for chart containers to draw at url: %s", url)
|
||||
WebDriverWait(driver, self._screenshot_locate_wait).until(
|
||||
EC.visibility_of_all_elements_located(
|
||||
(By.CLASS_NAME, "slice_container")
|
||||
(By.CLASS_NAME, "chart-container")
|
||||
)
|
||||
)
|
||||
except TimeoutException as ex:
|
||||
|
|
Loading…
Reference in New Issue