Working on tests

This commit is contained in:
Hillel Coren 2017-10-13 09:56:45 +03:00
parent 4ca3f3cd3d
commit 076c6ec150
2 changed files with 4 additions and 0 deletions

View File

@ -1,5 +1,8 @@
{!! Former::populateField(GATEWAY_STRIPE . '_apiKey', env('STRIPE_TEST_SECRET_KEY')) !!} {!! Former::populateField(GATEWAY_STRIPE . '_apiKey', env('STRIPE_TEST_SECRET_KEY')) !!}
{!! Former::populateField('publishable_key', env('STRIPE_TEST_PUBLISHABLE_KEY')) !!} {!! Former::populateField('publishable_key', env('STRIPE_TEST_PUBLISHABLE_KEY')) !!}
@if (Utils::isTravis())
{!! Former::populateField('enable_ach', 1) !!}
@endif
{!! Former::populateField('plaid_client_id', env('PLAID_TEST_CLIENT_ID')) !!} {!! Former::populateField('plaid_client_id', env('PLAID_TEST_CLIENT_ID')) !!}
{!! Former::populateField('plaid_secret', env('PLAID_TEST_SECRET')) !!} {!! Former::populateField('plaid_secret', env('PLAID_TEST_SECRET')) !!}
{!! Former::populateField('plaid_public_key', env('PLAID_TEST_PUBLIC_KEY')) !!} {!! Former::populateField('plaid_public_key', env('PLAID_TEST_PUBLIC_KEY')) !!}

View File

@ -126,6 +126,7 @@ class AcceptanceTester extends \Codeception\Actor
$clientSession->does(function(AcceptanceTester $I) use ($invitationKey) { $clientSession->does(function(AcceptanceTester $I) use ($invitationKey) {
$I->amOnPage('/view/' . $invitationKey); $I->amOnPage('/view/' . $invitationKey);
$I->click('Pay Now'); $I->click('Pay Now');
$I->click('Credit Card');
$I->fillField('#card_number', '4242424242424242'); $I->fillField('#card_number', '4242424242424242');
$I->fillField('#cvv', '100'); $I->fillField('#cvv', '100');
$I->selectOption('#expiration_month', 12); $I->selectOption('#expiration_month', 12);