mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Overhaul the query history tab to allow browsing of the history and full query text. Fixes #2282
Patch by Joao and the team at Pivotal.
This commit is contained in:
committed by
Dave Page
parent
e413186d23
commit
7f55412059
@@ -75,10 +75,18 @@ class QueryToolJourneyTest(BaseFeatureTest):
|
||||
self._execute_query("SELECT * FROM shoes")
|
||||
|
||||
self.page.click_tab("History")
|
||||
history_element = self.page.find_by_id("history_grid")
|
||||
history_element = self.page.find_by_id("query_list")
|
||||
self.assertIn("SELECT * FROM test_table", history_element.text)
|
||||
self.assertIn("SELECT * FROM shoes", history_element.text)
|
||||
|
||||
history_detail = self.page.find_by_id("query_detail")
|
||||
self.assertIn("SELECT * FROM shoes", history_detail.text)
|
||||
|
||||
old_history_list_element = self.page.find_by_xpath("//*[@id='query_list']/ul/li[2]")
|
||||
self.page.click_element(old_history_list_element)
|
||||
history_detail = self.page.find_by_id("query_detail")
|
||||
self.assertIn("SELECT * FROM test_table", history_detail.text)
|
||||
|
||||
def __clear_query_tool(self):
|
||||
self.page.click_element(self.page.find_by_xpath("//*[@id='btn-edit']"))
|
||||
self.page.click_modal('Yes')
|
||||
|
||||
Reference in New Issue
Block a user