Files
galaxy/test/integration_selenium/test_admin_dependencies.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

33 lines
1.3 KiB
Python

from selenium.webdriver.common.by import By
from .framework import (
selenium_test,
SeleniumIntegrationTestCase,
)
class TestAdminDependencyContainers(SeleniumIntegrationTestCase):
requires_admin = True
@selenium_test
def test_admin_containers_display(self):
admin_component = self.components.admin
self.admin_login()
self.admin_open()
self.screenshot("admin_landing")
admin_component.index.dependencies.wait_for_and_click()
self.sleep_for(self.wait_types.UX_RENDER)
# Make sure the tabs are visible
self.driver.find_element(By.LINK_TEXT, "Dependencies")
self.driver.find_element(By.LINK_TEXT, "Unused")
containers_link = self.driver.find_element(By.LINK_TEXT, "Containers")
# Ensure that #manage-resolver-type is visible.
admin_component.manage_dependencies.resolver_type.wait_for_visible()
self.screenshot("admin_dependencies_landing")
self.action_chains().move_to_element(containers_link).click().perform()
self.sleep_for(self.wait_types.UX_RENDER)
# Ensure that #manage-container-type is visible.
self.sleep_for(self.wait_types.UX_TRANSITION)
admin_component.manage_dependencies.container_type.wait_for_visible()
self.screenshot("admin_dependencies_containers")