mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-14 18:54:37 -04:00
Gateways: Authorize.net: Credit card: Pay with new card and save for future
This commit is contained in:
parent
f1ad846d17
commit
a913c2d9d0
@ -53,4 +53,25 @@ class CreditCardTest extends DuskTestCase
|
|||||||
->waitForText('Details of the payment', 60);
|
->waitForText('Details of the payment', 60);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function testPayWithNewCardAndSaveForFutureUse()
|
||||||
|
{
|
||||||
|
$this->browse(function (Browser $browser) {
|
||||||
|
$browser
|
||||||
|
->visitRoute('client.invoices.index')
|
||||||
|
->click('@pay-now')
|
||||||
|
->press('Pay Now')
|
||||||
|
->clickLink('Credit Card')
|
||||||
|
->radio('#proxy_is_default', true)
|
||||||
|
->type('card-number', '4007000000027')
|
||||||
|
->type('card-holders-name', 'John Doe')
|
||||||
|
->type('.expiry', '12/28')
|
||||||
|
->type('cvc', '100')
|
||||||
|
->press('Pay Now')
|
||||||
|
->waitForText('Details of the payment', 60)
|
||||||
|
->visitRoute('client.payment_methods.index')
|
||||||
|
->clickLink('View')
|
||||||
|
->assertSee('0027');
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user