1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-09-22 09:21:34 +02:00
invoiceninja/cypress/integration/client_portal/checkout_credit_card.spec.js

22 lines
726 B
JavaScript
Raw Normal View History

2021-02-03 12:36:10 +01:00
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();
});
});