Exemplo n.º 1
0
class TicketReviewPage(ProjectLayout):
    """
    Single ticket view
    """

    def __init__(self):
        super(TicketReviewPage, self).__init__()
        self.modify = Link(self._browser, **self.selector("modify"))
        self.submit = PageElement(self._browser, **self.selector("submit"))

        # Elements that are hidden/non-existing at first
        self.cc_block = None
        self.cc_field = None
        self.cc_button = None

    def activate_modify(self):
        self.modify.click()
        self.cc_block = TextInput(self._browser, **self.selector("cc_block"))
        self.cc_button = PageElement(self._browser, **self.selector("cc_button"))

    def set_cc(self, value):
        # Input field is hidden until block is clicked
        self.cc_field = TextInput(self._browser, **self.selector("cc_input"))
        self.cc_field.value = value
        self.cc_button.click()
Exemplo n.º 2
0
class TicketReviewPage(ProjectLayout):
    """
    Single ticket view
    """
    def __init__(self):
        super(TicketReviewPage, self).__init__()
        self.modify = Link(self._browser, **self.selector('modify'))
        self.submit = PageElement(self._browser, **self.selector('submit'))

        # Elements that are hidden/non-existing at first
        self.cc_block = None
        self.cc_field = None
        self.cc_button = None

    def activate_modify(self):
        self.modify.click()
        self.cc_block = TextInput(self._browser, **self.selector('cc_block'))
        self.cc_button = PageElement(self._browser,
                                     **self.selector('cc_button'))

    def set_cc(self, value):
        # Input field is hidden until block is clicked
        self.cc_field = TextInput(self._browser, **self.selector('cc_input'))
        self.cc_field.value = value
        self.cc_button.click()
Exemplo n.º 3
0
    def __init__(self):
        super(TicketReviewPage, self).__init__()
        self.modify = Link(self._browser, **self.selector('modify'))
        self.submit = PageElement(self._browser, **self.selector('submit'))

        # Elements that are hidden/non-existing at first
        self.cc_block = None
        self.cc_field = None
        self.cc_button = None
Exemplo n.º 4
0
 def __init__(self):
     super(Navigation, self).__init__()
     browser = self._browser
     self.summary = Link(browser, partial_text="Summary")
     self.wiki = Link(browser, partial_text="Wiki")
     self.timeline = Link(browser, partial_text="Timeline")
     self.roadmap = Link(browser, partial_text="Roadmap")
     self.source = Link(browser, partial_text="Source")
     self.files = Link(browser, partial_text="Files")
     self.tickets = Link(browser, partial_text="Tickets")
     self.search = Link(browser, text="Search")
     self.admin = Link(browser, partial_text="Admin")
     self.discussion = Link(browser, partial_text="Discussion")
Exemplo n.º 5
0
    def __init__(self):
        super(TicketReviewPage, self).__init__()
        self.modify = Link(self._browser, **self.selector("modify"))
        self.submit = PageElement(self._browser, **self.selector("submit"))

        # Elements that are hidden/non-existing at first
        self.cc_block = None
        self.cc_field = None
        self.cc_button = None
Exemplo n.º 6
0
 def __init__(self):
     super(WelcomePage, self).__init__()
     # NOTE: All public projects link cannot be added because not all environments have it enabled
     browser = self._browser
     self.my_projects = Link(browser, partial_text='Go to My Projects')
     self.create_project = Link(browser, partial_text='Create new project')
Exemplo n.º 7
0
 def __init__(self):
     super(TicketsPage, self).__init__()
     self.new_ticket = Link(self._browser, partial_text='New Ticket')
Exemplo n.º 8
0
 def __init__(self):
     super(AdminNavigation, self).__init__()
     browser = self._browser
     self.basic = Link(browser, partial_text="Basic")
     self.announcement = Link(browser, partial_text="Announcements")
     self.backup = Link(browser, partial_text="Backup")
     self.category = Link(browser, partial_text="Categorization")
     self.icon = Link(browser, partial_text="Project Icon")
     self.system = Link(browser, partial_text="System")
     self.forum = Link(browser, partial_text="Forums")
     self.forum_group = Link(browser, partial_text="Forum Groups")
     self.permissions = Link(browser, partial_text="Permissions")
     self.group = Link(browser, partial_text="Groups")
     self.component = Link(browser, partial_text="Components")
     self.milestone = Link(browser, partial_text="Milestones")
     self.priority = Link(browser, partial_text="Priorities")
     self.resolution = Link(browser, partial_text="Resolutions")
     self.severity = Link(browser, partial_text="Severities")
     self.ticket_type = Link(browser, partial_text="Ticket Types")
     self.version = Link(browser, partial_text="Versions")