From e48d521d03431630d2e35eabbb11230400b9a2fd Mon Sep 17 00:00:00 2001 From: David Bomba Date: Sun, 12 Mar 2023 15:57:20 +1100 Subject: [PATCH] cypress testing --- tests/cypress/integration/invoices.cy.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/tests/cypress/integration/invoices.cy.js b/tests/cypress/integration/invoices.cy.js index e63d10e6f4ff..ca6cee052979 100644 --- a/tests/cypress/integration/invoices.cy.js +++ b/tests/cypress/integration/invoices.cy.js @@ -30,10 +30,6 @@ describe('Test Invoices', () => { cy.contains('Continue').click(); 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 => { const $body = $iframe.contents().find("body"); @@ -49,6 +45,9 @@ describe('Test Invoices', () => { }); cy.get('#pay-now').click(); + cy.url().should('include', '/payments'); + + });