diff --git a/apps/pay/cypress/e2e/point-of-sale.cy.ts b/apps/pay/cypress/e2e/point-of-sale.cy.ts index 4587a38001a..221e517f86c 100644 --- a/apps/pay/cypress/e2e/point-of-sale.cy.ts +++ b/apps/pay/cypress/e2e/point-of-sale.cy.ts @@ -87,16 +87,17 @@ describe("Point of Sale", () => { const walletId = response.body.data.me.defaultAccount.defaultWalletId cy.log("Wallet ID:", walletId) - cy.sendInvoicePayment(paymentRequest, walletId, authToken).then( - (paymentResponse) => { + cy.sendInvoicePayment(paymentRequest, walletId, authToken) + .then((paymentResponse) => { expect(paymentResponse.body.data.lnInvoicePaymentSend.status).to.equal( "SUCCESS", ) + }) + .then(() => { cy.wait(3000) cy.get("[data-testid=success-icon]").should("exist") cy.get("[data-testid=success-icon]").should("be.visible") - }, - ) + }) }) }) })