Example #1
0
    def test02_delete_repeating_invoice(self):
        """
        This test case deletes the repeating invoice created in
        test case ONE above.

        It is important to note that it deletes the first instance of
        the repeating invoice found with the name used during
        creation above.
        """
        repeatingInvoicePage = RepeatingInvoicePage(self.driver)
        repeatingInvoicePage.find_invoice()

        if not repeatingInvoicePage.delete_invoice():
        	assert False
Example #2
0
    def test01_create_new_repeating_invoice(self):
        """
        Create a new repeating invoice
        """
        loginPage = LoginPage(self.driver)
        loginPage.hard_coded_login()

        repeatingInvoicePage = RepeatingInvoicePage(self.driver)
        repeatingInvoicePage.create_new_invoice()

        newInvoicePage = CreateRepeatingInvoicePage(self.driver)
        newInvoicePage.fill_out_new_invoice()
        newInvoicePage.submit_invoice()

        if not repeatingInvoicePage.new_invoice_created():
            assert False