mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-01 08:24:35 -04:00
cypress testing
This commit is contained in:
parent
9f8c5ad1be
commit
e48d521d03
7
tests/cypress/integration/invoices.cy.js
vendored
7
tests/cypress/integration/invoices.cy.js
vendored
@ -30,10 +30,6 @@ describe('Test Invoices', () => {
|
|||||||
cy.contains('Continue').click();
|
cy.contains('Continue').click();
|
||||||
|
|
||||||
cy.get('#cardholder-name').type('Cypress Test');
|
cy.get('#cardholder-name').type('Cypress Test');
|
||||||
// cy.contains('Card number').type('4242424242424242');
|
|
||||||
// cy.contains('MM / YY').type('1024');
|
|
||||||
// cy.contains('CVC').type('100');
|
|
||||||
|
|
||||||
|
|
||||||
cy.get("iframe").then($iframe => {
|
cy.get("iframe").then($iframe => {
|
||||||
const $body = $iframe.contents().find("body");
|
const $body = $iframe.contents().find("body");
|
||||||
@ -49,6 +45,9 @@ describe('Test Invoices', () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
cy.get('#pay-now').click();
|
cy.get('#pay-now').click();
|
||||||
|
cy.url().should('include', '/payments');
|
||||||
|
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user