Esempio n. 1
0
class TestManage(TestCase):
    """
    TestCase class that tests the manage page
    """

    @pytest.fixture(autouse=True)
    def setUp(self):
        self.manage = ManageUi(self)

    def test_manage_open(self):

        self.manage.open_manage()
        self.manage.check_url()

    def test_close_menus(self):
        """
        Verify that the manage class is able to close an open menu
        """
        self.manage.open_manage()
        menu = self.manage.find_by_css(self.manage.MENU_LINOTP_CONFIG_CSS)
        menu_item_id = "menu_edit_resolvers"

        menu.click()
        WebDriverWait(self.driver, self.ui_wait_time).until(
            EC.element_to_be_clickable((By.ID, menu_item_id))
        )
        self.manage.close_all_menus()
        WebDriverWait(self.driver, self.ui_wait_time).until_not(
            EC.element_to_be_clickable((By.ID, menu_item_id))
        )
Esempio n. 2
0
class TestManage(TestCase):
    """
    TestCase class that tests the manage page
    """
    def setUp(self):
        TestCase.setUp(self)
        self.manage = ManageUi(self)

    def test_manage_open(self):

        self.manage.open_manage()
        self.manage.check_url()
Esempio n. 3
0
class TestManage(TestCase):
    """
    TestCase class that tests the manage page
    """

    @pytest.fixture(autouse=True)
    def setUp(self):
        self.manage = ManageUi(self)

    def test_manage_open(self):

        self.manage.open_manage()
        self.manage.check_url()
Esempio n. 4
0
class TestManage(TestCase):
    """
    TestCase class that tests the manage page
    """

    def setUp(self):
        TestCase.setUp(self)
        self.manage = ManageUi(self)

    def test_manage_open(self):

        self.manage.open_manage()
        self.manage.check_url()