Source code for cfme.control.explorer

# -*- coding: utf-8 -*-
from navmazing import NavigateToSibling
from widgetastic.widget import View
from widgetastic_manageiq import ManageIQTree
from widgetastic_patternfly import Accordion, Dropdown

from cfme.base import Server
from cfme.base.login import BaseLoggedInPage
from cfme.utils.appliance.implementations.ui import navigator, CFMENavigateStep

[docs]class ControlExplorerView(BaseLoggedInPage): @property def in_control_explorer(self): return ( self.logged_in_as_current_user and self.navigation.currently_selected == ['Control', 'Explorer']) @property def is_displayed(self): return self.in_control_explorer and self.configuration.is_displayed @View.nested class policy_profiles(Accordion): # noqa ACCORDION_NAME = "Policy Profiles" tree = ManageIQTree() @View.nested class policies(Accordion): # noqa tree = ManageIQTree() @View.nested class events(Accordion): # noqa tree = ManageIQTree() @View.nested class conditions(Accordion): # noqa tree = ManageIQTree() @View.nested class actions(Accordion): # noqa tree = ManageIQTree() @View.nested class alert_profiles(Accordion): # noqa ACCORDION_NAME = "Alert Profiles" tree = ManageIQTree() @View.nested class alerts(Accordion): # noqa tree = ManageIQTree() configuration = Dropdown("Configuration")
[docs]class ControlExplorer(CFMENavigateStep): VIEW = ControlExplorerView prerequisite = NavigateToSibling("LoggedIn")
[docs] def step(self):"Control", "Explorer")