pytest-based selenium tests add fix image modal instability
Change-Id: I92fa6379394620837c8a2518ee6138279f429f9c
This commit is contained in:
parent
93d8476528
commit
e1ff24fb7e
@ -399,6 +399,8 @@ def test_remove_protected_image_admin(login, driver, image_names,
|
||||
rows = driver.find_elements_by_xpath(f"//a[text()='{image_name}']")
|
||||
actions_column = rows[0].find_element_by_xpath(
|
||||
".//ancestor::tr/td[contains(@class,'actions_column')]")
|
||||
WebDriverWait(driver, config.selenium.page_timeout).until(
|
||||
EC.invisibility_of_element((By.CSS_SELECTOR, ".modal-backdrop")))
|
||||
widgets.select_from_dropdown(actions_column, "Delete Image")
|
||||
widgets.confirm_modal(driver)
|
||||
messages = widgets.get_and_dismiss_messages(driver)
|
||||
|
Loading…
Reference in New Issue
Block a user