mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-08 05:14:30 -04:00
Working on tests
This commit is contained in:
parent
6a2ad59de1
commit
fe9ac56e4f
@ -51,7 +51,7 @@ class OnlinePaymentCest
|
|||||||
|
|
||||||
// create recurring invoice and auto-bill
|
// create recurring invoice and auto-bill
|
||||||
$I->amOnPage('/recurring_invoices/create');
|
$I->amOnPage('/recurring_invoices/create');
|
||||||
$I->selectDropdown($I, 'Test Test', '.client_select .dropdown-toggle');
|
$I->selectDropdown($I, $clientEmail, '.client_select .dropdown-toggle');
|
||||||
$I->fillField('table.invoice-table tbody tr:nth-child(1) #product_key', $productKey);
|
$I->fillField('table.invoice-table tbody tr:nth-child(1) #product_key', $productKey);
|
||||||
$I->click('table.invoice-table tbody tr:nth-child(1) .tt-selectable');
|
$I->click('table.invoice-table tbody tr:nth-child(1) .tt-selectable');
|
||||||
$I->selectOption('#auto_bill', 3);
|
$I->selectOption('#auto_bill', 3);
|
||||||
@ -61,7 +61,6 @@ class OnlinePaymentCest
|
|||||||
$invoiceId = $I->grabFromDatabase('invoices', 'id', ['client_id' => $clientId, 'is_recurring' => true]);
|
$invoiceId = $I->grabFromDatabase('invoices', 'id', ['client_id' => $clientId, 'is_recurring' => true]);
|
||||||
$invoiceId = $I->grabFromDatabase('invoices', 'public_id', ['recurring_invoice_id' => $invoiceId]);
|
$invoiceId = $I->grabFromDatabase('invoices', 'public_id', ['recurring_invoice_id' => $invoiceId]);
|
||||||
|
|
||||||
$I->amOnPage("/invoices/{$invoiceId}/edit");
|
$I->seeInDatabase('invoices', ['client_id' => $clientId, 'public_id' => $invoiceId, 'balance' => 0]);
|
||||||
$I->see('Successfully applied payment');
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user