mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Gateways: Braintree: Credit card: Pay with saved card
This commit is contained in:
parent
617e51b7c3
commit
f4b7f4b85c
@ -86,4 +86,18 @@ class CreditCardTest extends DuskTestCase
|
|||||||
->assertSee('1111');
|
->assertSee('1111');
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function testPayWithSavedCard()
|
||||||
|
{
|
||||||
|
$this->browse(function (Browser $browser) {
|
||||||
|
$browser
|
||||||
|
->visitRoute('client.invoices.index')
|
||||||
|
->click('@pay-now')
|
||||||
|
->press('Pay Now')
|
||||||
|
->clickLink('Credit Card')
|
||||||
|
->click('.toggle-payment-with-token')
|
||||||
|
->click('#pay-now-with-token')
|
||||||
|
->waitForText('Details of the payment', 60);
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user