mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Working on tests
This commit is contained in:
parent
a1f0461e02
commit
6b7542085a
@ -67,18 +67,16 @@ class CheckBalanceCest
|
|||||||
$I->see('Balance $0.00');
|
$I->see('Balance $0.00');
|
||||||
$I->see('Paid to Date $' . ($productPrice * 2));
|
$I->see('Paid to Date $' . ($productPrice * 2));
|
||||||
|
|
||||||
/*
|
|
||||||
// archive the invoice
|
// archive the invoice
|
||||||
$I->amOnPage('/invoices/' . $invoiceId);
|
$I->amOnPage('/invoices/' . $invoiceId . '/edit');
|
||||||
$I->executeJS('submitBulkAction("archive")');
|
$I->executeJS('submitBulkAction("archive")');
|
||||||
$I->wait(1);
|
$I->wait(1);
|
||||||
$I->amOnPage("/clients/{$clientId}");
|
$I->amOnPage("/clients/{$clientId}");
|
||||||
$I->see('Balance $0.00');
|
$I->see('Balance $0.00');
|
||||||
$I->see('Paid to Date $' . ($productPrice * 2));
|
$I->see('Paid to Date $' . ($productPrice * 2));
|
||||||
*/
|
|
||||||
|
|
||||||
// delete the invoice
|
// delete the invoice
|
||||||
$I->amOnPage('/invoices/' . $invoiceId);
|
$I->amOnPage('/invoices/' . $invoiceId . '/edit');
|
||||||
$I->executeJS('submitBulkAction("delete")');
|
$I->executeJS('submitBulkAction("delete")');
|
||||||
$I->wait(1);
|
$I->wait(1);
|
||||||
$I->amOnPage("/clients/{$clientId}");
|
$I->amOnPage("/clients/{$clientId}");
|
||||||
@ -86,7 +84,7 @@ class CheckBalanceCest
|
|||||||
$I->see('Paid to Date $0.00');
|
$I->see('Paid to Date $0.00');
|
||||||
|
|
||||||
// restore the invoice
|
// restore the invoice
|
||||||
$I->amOnPage('/invoices/' . $invoiceId);
|
$I->amOnPage('/invoices/' . $invoiceId . '/edit');
|
||||||
$I->executeJS('submitBulkAction("restore")');
|
$I->executeJS('submitBulkAction("restore")');
|
||||||
$I->wait(1);
|
$I->wait(1);
|
||||||
$I->amOnPage("/clients/{$clientId}");
|
$I->amOnPage("/clients/{$clientId}");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user