mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-09-22 09:21:34 +02:00
22 lines
726 B
JavaScript
22 lines
726 B
JavaScript
|
context('Checkout.com gateway test', () => {
|
||
|
beforeEach(() => {
|
||
|
cy.viewport('macbook-13');
|
||
|
});
|
||
|
|
||
|
it('should migrate & seed checkout', function () {
|
||
|
// cy.artisan('migrate:fresh --seed');
|
||
|
// cy.artisan('ninja:create-single-account');
|
||
|
cy.clientLogin();
|
||
|
|
||
|
cy.get('[data-cy=pay-now]').first().click();
|
||
|
cy.get('[data-cy=pay-now-dropdown]').click();
|
||
|
cy.get('[data-cy=pay-with-0]').click();
|
||
|
|
||
|
cy.getWithinIframe('#checkout-frames-card-number').type('4242424242424242');
|
||
|
cy.getWithinIframe('#checkout-frames-expiry-date').type('12/30');
|
||
|
cy.getWithinIframe('#checkout-frames-cvv').type('100');
|
||
|
|
||
|
cy.get('#pay-button').click();
|
||
|
});
|
||
|
});
|