Skip to content

Commit

Permalink
Remove deprecated method click_hda_title in navigates_galaxy.
Browse files Browse the repository at this point in the history
  • Loading branch information
jmchilton committed Oct 2, 2017
1 parent 27ef246 commit cce59ae
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 10 deletions.
4 changes: 0 additions & 4 deletions test/galaxy_selenium/navigates_galaxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -791,10 +791,6 @@ def history_panel_click_item_title(self, **kwds):
else:
self.wait_for_selector_visible(details_selector)

def click_hda_title(self, hda_id, wait=False):
# TODO: Replace with calls to history_panel_click_item_title.
return self.history_panel_click_item_title(hda_id=hda_id, wait=wait)

def collection_builder_set_name(self, name):
name_element = self.wait_for_selector_visible("input.collection-name")
name_element.send_keys(name)
Expand Down
9 changes: 5 additions & 4 deletions test/selenium_tests/test_history_options.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,13 @@ def test_options(self):

self.assert_selector_absent_or_hidden(menu_selector)

hda_id = self.latest_history_item()["id"]
self.click_hda_title(hda_id, wait=True)
hda = self.latest_history_item()
hid = hda["hid"]
self.history_panel_click_item_title(hid=hid, wait=True)

hda_body_selector = self.hda_body_selector(hda_id)
hda_body_selector = self.hda_body_selector(hda["id"])
self.wait_for_selector_visible(hda_body_selector)

self.click_hda_title(hda_id, wait=True)
self.history_panel_click_item_title(hid=hid, wait=True)

self.assert_selector_absent_or_hidden_after_transitions(hda_body_selector)
4 changes: 2 additions & 2 deletions test/selenium_tests/test_history_panel.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,15 +92,15 @@ def test_refresh_preserves_state(self):
hda_body_selector = self.hda_body_selector(hda_id)
self.assert_selector_absent_or_hidden(hda_body_selector)

self.click_hda_title(hda_id, wait=True)
self.history_panel_click_item_title(hda_id, wait=True)
self.wait_for_selector_visible(hda_body_selector)

self.history_panel_refresh_click()

title_selector = self.hda_div_selector(hda_id)
self.wait_for_selector_visible(hda_body_selector)

self.click_hda_title(hda_id, wait=True)
self.history_panel_click_item_title(hda_id, wait=True)
self.history_panel_refresh_click()

self.wait_for_selector(title_selector)
Expand Down

0 comments on commit cce59ae

Please sign in to comment.