Example #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()
Example #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()
Example #3
0
    def remove_project(self):
        button = PageElement(self._browser, 'input[name="remove"]')
        button.click()

        # Handle confirmation dialog: first button is Confirmation
        browser = self._browser
        browser.find_by_css("span.ui-button-text").first.click()
Example #4
0
    def remove_project(self):
        button = PageElement(self._browser, 'input[name="remove"]')
        button.click()

        # Handle confirmation dialog: first button is Confirmation
        browser = self._browser
        browser.find_by_css('span.ui-button-text').first.click()
Example #5
0
 def __init__(self):
     super(EditWikiPage, self).__init__()
     browser = self._browser
     self.text = TextInput(browser, 'textarea#text')
     self.comment = TextInput(browser, 'input#comment')
     self.preview = PageElement(browser, 'input[name="preview"]')
     self.review = PageElement(browser, 'input[name="diff"]')
     self.submit = PageElement(browser, 'input[name="save"]')
Example #6
0
 def __init__(self):
     super(NewTicketPage, self).__init__()
     browser = self._browser
     self.summary = TextInput(browser, **self.selector('summary'))
     self.reporter = TextInput(browser, **self.selector('reporter'))
     self.description = TextInput(browser, **self.selector('description'))
     self.submit = PageElement(browser, **self.selector('submit'))
Example #7
0
 def __init__(self):
     super(CreateProjectPage, self).__init__()
     browser = self._browser
     self.name = TextInput(browser, 'input#prj_long_name')
     self.identifier = TextInput(browser, 'input#prj_short_name')
     self.description = TextInput(browser, 'textarea#prj_description')
     self.vcs_type = Select(browser, 'select#vcstype')
     self.submit = PageElement(browser, 'input#submit_create_form')
Example #8
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
Example #9
0
 def __init__(self):
     super(LoginPage, self).__init__()
     browser = self._browser
     self.username = TextInput(browser, 'input#fnloginUsername')
     self.password = Checkbox(browser, 'input#fnloginPassword')
     self.submit = PageElement(browser, 'input.blueInputBtn')
Example #10
0
 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"))
Example #11
0
 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'))