Files
galaxy/test/integration_selenium/test_upload_file_sources.py
T
Nicola Soranzo c35d8f2a06 Replace `unittest.TestCase` with pytest-based partial re-implementation
Also:
- Rename `FooBarTestCase` test classes as `TestFooBar`. These were collected
  by pytest only because they were `unittest.TestCase` derived, but normally
  pytest collects only test classes whose name starts with `Test`, see
  https://docs.pytest.org/en/7.1.x/reference/reference.html#confval-python_classes
2022-09-27 03:34:58 +01:00

34 lines
1.2 KiB
Python

from typing import TYPE_CHECKING
from galaxy_test.driver.integration_setup import PosixFileSourceSetup
from .framework import (
selenium_test,
SeleniumIntegrationTestCase,
)
if TYPE_CHECKING:
from galaxy_test.selenium.framework import SeleniumSessionDatasetPopulator
class TestPosixFileSourceSeleniumIntegration(PosixFileSourceSetup, SeleniumIntegrationTestCase):
dataset_populator: "SeleniumSessionDatasetPopulator"
# For simplicity, otherwise need to setup a different file_sources_config_file
requires_admin = True
@selenium_test
def test_upload_from_posix(self):
self.admin_login()
self.components.upload.start.wait_for_and_click()
self.components.upload.ftp_add.wait_for_and_click()
self.components.upload.file_source_selector(path="gxfiles://posix_test").wait_for_and_click()
self.components.upload.file_source_selector(path="gxfiles://posix_test/a").wait_for_and_click()
self.components.upload.file_dialog_ok.wait_for_and_click()
self.upload_start()
self.sleep_for(self.wait_types.UX_RENDER)
self.wait_for_history()
def setUp(self):
super().setUp()
self._write_file_fixtures()