fix(reports): Update the element class to wait for when taking a screenshot (#28745)

This commit is contained in:
Vitor Avila 2024-05-29 16:05:48 -03:00 committed by GitHub
parent 453a645356
commit 020c79970f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -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()
@ -375,7 +375,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: