mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
One more fix for main_panel fix in #3992.
See #4003 / d09ba53c8e for similar fix to other tests and more information.
This commit is contained in:
@@ -31,22 +31,23 @@ class ToolFormTestCase(SeleniumTestCase, UsesHistoryItemAssertions):
|
||||
hda = self.latest_history_item()
|
||||
self._check_dataset_details_for_inttest_value(1)
|
||||
|
||||
dataset_details_key_value_pairs = self._table_to_key_value_elements("table#dataset-details")
|
||||
number_found = name_found = format_found = False
|
||||
for key, value in dataset_details_key_value_pairs:
|
||||
if "Number:" in key.text:
|
||||
assert str(hda["hid"]) in value.text
|
||||
number_found = True
|
||||
if "Name:" in key.text:
|
||||
assert hda["name"] in value.text
|
||||
name_found = True
|
||||
if "Format:" in key.text:
|
||||
assert hda["extension"] in value.text
|
||||
format_found = True
|
||||
with self.main_panel():
|
||||
dataset_details_key_value_pairs = self._table_to_key_value_elements("table#dataset-details")
|
||||
number_found = name_found = format_found = False
|
||||
for key, value in dataset_details_key_value_pairs:
|
||||
if "Number:" in key.text:
|
||||
assert str(hda["hid"]) in value.text
|
||||
number_found = True
|
||||
if "Name:" in key.text:
|
||||
assert hda["name"] in value.text
|
||||
name_found = True
|
||||
if "Format:" in key.text:
|
||||
assert hda["extension"] in value.text
|
||||
format_found = True
|
||||
|
||||
assert number_found
|
||||
assert name_found
|
||||
assert format_found
|
||||
assert number_found
|
||||
assert name_found
|
||||
assert format_found
|
||||
|
||||
def _table_to_key_value_elements(self, table_selector):
|
||||
tool_parameters_table = self.wait_for_selector_visible(table_selector)
|
||||
|
||||
Reference in New Issue
Block a user