mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Dataset collection state UX test case.
This commit is contained in:
@@ -339,6 +339,14 @@ class SeleniumTestCase(FunctionalTestCase, NavigatesGalaxy, UsesApiTestCaseMixin
|
||||
with self.main_panel():
|
||||
self.assert_no_error_message()
|
||||
|
||||
@property
|
||||
def dataset_populator(self):
|
||||
return SeleniumSessionDatasetPopulator(self)
|
||||
|
||||
@property
|
||||
def dataset_collection_populator(self):
|
||||
return SeleniumSessionDatasetCollectionPopulator(self)
|
||||
|
||||
@property
|
||||
def workflow_populator(self):
|
||||
return SeleniumSessionWorkflowPopulator(self)
|
||||
@@ -465,13 +473,20 @@ class SeleniumSessionGetPostMixin:
|
||||
"""Mixin for adapting Galaxy testing populators helpers to Selenium session backed bioblend."""
|
||||
|
||||
def _get(self, route):
|
||||
return self.selenium_test_case.api_get(route)
|
||||
full_url = self.selenium_test_case.build_url("api/" + route, for_selenium=False)
|
||||
response = requests.get(full_url, cookies=self.selenium_test_case.selenium_to_requests_cookies())
|
||||
return response
|
||||
|
||||
def _post(self, route, data={}):
|
||||
full_url = self.selenium_test_case.build_url("api/" + route, for_selenium=False)
|
||||
response = requests.post(full_url, data=data, cookies=self.selenium_test_case.selenium_to_requests_cookies())
|
||||
return response
|
||||
|
||||
def _delete(self, route, data={}):
|
||||
full_url = self.selenium_test_case.build_url("api/" + route, for_selenium=False)
|
||||
response = requests.delete(full_url, data=data, cookies=self.selenium_test_case.selenium_to_requests_cookies())
|
||||
return response
|
||||
|
||||
def __url(self, route):
|
||||
return self._gi.url + "/" + route
|
||||
|
||||
|
||||
Reference in New Issue
Block a user