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
63191d6166
commit
7f498b86ff
@ -81,10 +81,18 @@ class QuoteCest
|
|||||||
$I->selectDropdown($I, $templateName, '.template-select .dropdown-toggle');
|
$I->selectDropdown($I, $templateName, '.template-select .dropdown-toggle');
|
||||||
$I->click('Save');
|
$I->click('Save');
|
||||||
$I->click('Download');
|
$I->click('Download');
|
||||||
$I->click('More Actions');
|
|
||||||
$I->click('View as recipient');
|
$clientId = $I->grabFromDatabase('contacts', 'client_id', ['email' => $clientEmail]);
|
||||||
$I->click('Download');
|
$invoiceId = $I->grabFromDatabase('invoices', 'id', ['client_id' => $clientId]);
|
||||||
$I->click('Approve');
|
$proposalId = $I->grabFromDatabase('proposals', 'id', ['invoice_id' => $invoiceId]);
|
||||||
$I->see('Successfully approved');
|
$invitationKey = $I->grabFromDatabase('proposal_invitations', 'invitation_key', ['proposal_id' => $proposalId]);
|
||||||
|
|
||||||
|
$clientSession = $I->haveFriend('client');
|
||||||
|
$clientSession->does(function(AcceptanceTester $I) use ($invitationKey) {
|
||||||
|
$I->amOnPage('/proposal/' . $invitationKey);
|
||||||
|
$I->click('Approve');
|
||||||
|
$I->see('Successfully approved');
|
||||||
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user