mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-06 19:14:34 -04:00
Gateways: WePay: Credit card: Adding credit card standalone
This commit is contained in:
parent
59c4ec63cc
commit
b07b56c76f
@ -102,4 +102,22 @@ class CreditCardTest extends DuskTestCase
|
|||||||
->assertSee('Payment method has been successfully removed.');
|
->assertSee('Payment method has been successfully removed.');
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function testAddingCreditCardStandalone()
|
||||||
|
{
|
||||||
|
$this->browse(function (Browser $browser) {
|
||||||
|
$browser
|
||||||
|
->visitRoute('client.payment_methods.index')
|
||||||
|
->press('Add Payment Method')
|
||||||
|
->clickLink('Credit Card')
|
||||||
|
->waitForText('Credit Card')
|
||||||
|
->type('#cardholder_name', 'John Doe')
|
||||||
|
->type('card-number', '4003830171874018')
|
||||||
|
->type('card-holders-name', 'John Doe')
|
||||||
|
->type('.expiry', '12/28')
|
||||||
|
->type('cvc', '100')
|
||||||
|
->press('Add Payment Method')
|
||||||
|
->waitForText(4018, 60);
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user