Skip to content

Commit

Permalink
Merge pull request SatelliteQE#1702 from sghai/zstream-fixes
Browse files Browse the repository at this point in the history
Fixed few more UI failures
  • Loading branch information
Ichimonji10 committed Nov 19, 2014
2 parents bfd710a + aa0b29c commit fe9dd25
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 7 deletions.
1 change: 1 addition & 0 deletions robottelo/ui/computeresource.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ def search(self, name):
Searches existing compute resource from UI
"""
Navigator(self.browser).go_to_compute_resources()
self.wait_for_ajax()
element = self.search_entity(name, locators["resource.select_name"])
return element

Expand Down
1 change: 1 addition & 0 deletions robottelo/ui/configgroups.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ def search(self, name):
Searches existing config-groups from UI
"""
Navigator(self.browser).go_to_config_groups()
self.wait_for_ajax()
element = self.search_entity(name,
locators["config_groups.select_name"])
return element
Expand Down
1 change: 1 addition & 0 deletions robottelo/ui/domain.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ def search(self, description, timeout=None):
Searches existing domain from UI
"""
Navigator(self.browser).go_to_domains()
self.wait_for_ajax()
element = self.search_entity(description,
locators["domain.domain_description"],
timeout=timeout)
Expand Down
1 change: 1 addition & 0 deletions robottelo/ui/location.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ def search(self, name):
Searches existing location from UI
"""
nav(self.browser).go_to_loc()
self.wait_for_ajax()
element = self.search_entity(name, locators["location.select_name"])
return element

Expand Down
1 change: 1 addition & 0 deletions robottelo/ui/medium.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ def search(self, name):
Searches existing medium from UI
"""
Navigator(self.browser).go_to_installation_media()
self.wait_for_ajax()
element = self.search_entity(name, locators["medium.medium_name"])
return element

Expand Down
1 change: 1 addition & 0 deletions robottelo/ui/org.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ def search(self, name):
Searches existing Organization from UI
"""
nav(self.browser).go_to_org()
self.wait_for_ajax()
element = self.search_entity(name, locators["org.org_name"])
return element

Expand Down
8 changes: 4 additions & 4 deletions tests/foreman/ui/test_location.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def test_negative_create_1(self, loc_name):
@BZ: 1123818
"""
with Session(self.browser) as session:
make_loc(session, name=loc_name)
make_loc(session, name=loc_name, edit=False)
error = session.nav.wait_until_element(
common_locators["name_haserror"])
self.assertIsNotNone(error)
Expand All @@ -91,7 +91,7 @@ def test_negative_create_2(self):

loc_name = ""
with Session(self.browser) as session:
make_loc(session, name=loc_name)
make_loc(session, name=loc_name, edit=False)
error = session.nav.wait_until_element(
common_locators["name_haserror"])
self.assertIsNotNone(error)
Expand All @@ -105,7 +105,7 @@ def test_negative_create_3(self):

loc_name = " "
with Session(self.browser) as session:
make_loc(session, name=loc_name)
make_loc(session, name=loc_name, edit=False)
error = session.nav.wait_until_element(
common_locators["name_haserror"])
self.assertIsNotNone(error)
Expand All @@ -123,7 +123,7 @@ def test_negative_create_4(self, loc_name):
with Session(self.browser) as session:
make_loc(session, name=loc_name)
self.assertIsNotNone(self.location.search(loc_name))
make_loc(session, name=loc_name)
make_loc(session, name=loc_name, edit=False)
error = session.nav.wait_until_element(
common_locators["name_haserror"])
self.assertIsNotNone(error)
Expand Down
6 changes: 3 additions & 3 deletions tests/foreman/ui/test_org.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ def test_negative_create_0(self, org_name):
@assert: organization is not created
"""
with Session(self.browser) as session:
make_org(session, org_name=org_name)
make_org(session, org_name=org_name, edit=False)
error = session.nav.wait_until_element(
common_locators["name_haserror"])
self.assertIsNotNone(error)
Expand All @@ -218,7 +218,7 @@ def test_negative_create_1(self):
"""
org_name = ""
with Session(self.browser) as session:
make_org(session, org_name=org_name)
make_org(session, org_name=org_name, edit=False)
error = session.nav.wait_until_element(
common_locators["name_haserror"])
self.assertIsNotNone(error)
Expand All @@ -232,7 +232,7 @@ def test_negative_create_2(self):
"""
org_name = " "
with Session(self.browser) as session:
make_org(session, org_name=org_name)
make_org(session, org_name=org_name, edit=False)
error = session.nav.wait_until_element(
common_locators["name_haserror"])
self.assertIsNotNone(error)
Expand Down

0 comments on commit fe9dd25

Please sign in to comment.