Remove attempts to close success message in tests
This commit removes attempts to close a success message, because horizon code may hide and remove the message before tests are able to close it. This could trigger false negatives from time to time. It's harmless to ignore success the message as long as it is present on the page. Change-Id: I660d174493cade75fcab6a8f5b7f6214dd188589 Related-Bug: #1466332
This commit is contained in:
parent
7f1069c118
commit
af4d28eaf4
@ -212,11 +212,6 @@ class UITestCase(BaseDeps):
|
|||||||
log.debug("Waiting for a success message")
|
log.debug("Waiting for a success message")
|
||||||
ui.WebDriverWait(self.driver, 2).until(
|
ui.WebDriverWait(self.driver, 2).until(
|
||||||
EC.presence_of_element_located(locator))
|
EC.presence_of_element_located(locator))
|
||||||
is_open = self.driver.find_elements(by.By.CSS_SELECTOR,
|
|
||||||
'a.close')
|
|
||||||
if is_open:
|
|
||||||
log.debug("Hide success message")
|
|
||||||
is_open[0].click()
|
|
||||||
|
|
||||||
def wait_element_is_clickable(self, method, element):
|
def wait_element_is_clickable(self, method, element):
|
||||||
return ui.WebDriverWait(self.driver, 10).until(
|
return ui.WebDriverWait(self.driver, 10).until(
|
||||||
|
Loading…
Reference in New Issue
Block a user