Simple tool test for citations.

This commit is contained in:
John Chilton
2017-11-24 15:25:19 -05:00
parent e03ea6d781
commit ca2eb5b2a5
5 changed files with 46 additions and 14 deletions
+16
View File
@@ -105,6 +105,22 @@ class ToolFormTestCase(SeleniumTestCase, UsesHistoryItemAssertions):
assert latest_hda["hid"] == 3
assert latest_hda["name"] == "Select first on data 1"
@selenium_test
def test_bibtex_rendering(self):
self.home()
self.tool_open("bibtex")
self.components.tool_form.citations.wait_for_visible()
references = self.components.tool_form.reference.all()
assert len(references) == 26, len(references)
doi_resolved_citation = references[0]
assert "Galaxy: A platform for interactive" in doi_resolved_citation.text
self.screenshot("tool_form_citations_formatted")
self.components.tool_form.show_bibtex.wait_for_and_click()
textarea = self.components.tool_form.bibtex_area.wait_for_visible()
assert "Galaxy: A platform for interactive" in textarea.get_attribute("value")
self.screenshot("tool_form_citations_bibtex")
def _check_dataset_details_for_inttest_value(self, hid, expected_value="42"):
self.hda_click_primary_action_button(hid, "info")