Merge "Fix selenium test test_filter_by_tag"

This commit is contained in:
Zuul 2019-03-05 03:17:09 +00:00 committed by Gerrit Code Review
commit c87a2ac5d0
1 changed files with 4 additions and 3 deletions

View File

@ -1142,10 +1142,11 @@ class TestSuiteApplications(base.ApplicationTestCase):
all_apps = ['DeployingApp', 'HotExample', 'MockApp', 'PostgreSQL']
for tag, name_list in apps_by_tag.items():
self.fill_field(by.By.CSS_SELECTOR, 'input.form-control', tag)
with self.wait_for_page_reload():
self.driver.find_element_by_id('apps__action_filter').click()
for name in name_list:
self.fill_field(by.By.CSS_SELECTOR, 'input.form-control', name)
with self.wait_for_page_reload():
self.driver.find_element_by_id(
'apps__action_filter').click()
self.check_element_on_page(by.By.XPATH,
c.App.format(name))
for name in set(all_apps) - set(name_list):