Un-break the feature tests. Fixes from Surinder and myself.

REL-1_X
Surinder Kumar 2017-06-14 09:59:11 +01:00 committed by Dave Page
parent 4b846ae4e0
commit 2b4a8ed89c
3 changed files with 3 additions and 3 deletions

View File

@ -44,7 +44,7 @@ class CopySelectedQueryResultsFeatureTest(BaseFeatureTest):
time.sleep(5) time.sleep(5)
self.page.find_by_partial_link_text("Tools").click() self.page.find_by_partial_link_text("Tools").click()
self.page.find_by_partial_link_text("Query Tool").click() self.page.find_by_partial_link_text("Query Tool").click()
self.page.click_tab('Query-1') self.page.click_tab('Query -')
time.sleep(5) time.sleep(5)
ActionChains(self.page.driver).send_keys("SELECT * FROM test_table ORDER BY some_column").perform() ActionChains(self.page.driver).send_keys("SELECT * FROM test_table ORDER BY some_column").perform()
self.page.driver.switch_to_frame(self.page.driver.find_element_by_tag_name("iframe")) self.page.driver.switch_to_frame(self.page.driver.find_element_by_tag_name("iframe"))

View File

@ -90,7 +90,7 @@ class QueryToolJourneyTest(BaseFeatureTest):
time.sleep(5) time.sleep(5)
self.page.find_by_partial_link_text("Tools").click() self.page.find_by_partial_link_text("Tools").click()
self.page.find_by_partial_link_text("Query Tool").click() self.page.find_by_partial_link_text("Query Tool").click()
self.page.click_tab('Query-1') self.page.click_tab('Query -')
time.sleep(5) time.sleep(5)
def _execute_query(self, query): def _execute_query(self, query):

View File

@ -113,7 +113,7 @@ class PgadminPage:
try: try:
self.driver.find_element_by_id("frmPassword") self.driver.find_element_by_id("frmPassword")
# Enter password here if needed # Enter password here if needed
self.click_modal_ok() self.click_modal('OK')
except WebDriverException: except WebDriverException:
return return