From b4ab90c94546bc9ca4e142667935285e03183ae0 Mon Sep 17 00:00:00 2001 From: Siddharth Tiwari Date: Fri, 16 Feb 2024 13:17:04 +0530 Subject: [PATCH] chore: added success-icon in test --- apps/pay/components/PaymentOutcome/index.tsx | 1 + apps/pay/cypress/e2e/point-of-sale.cy.ts | 2 ++ 2 files changed, 3 insertions(+) diff --git a/apps/pay/components/PaymentOutcome/index.tsx b/apps/pay/components/PaymentOutcome/index.tsx index 9c1fda2b8d2..f268ff7a7a5 100644 --- a/apps/pay/components/PaymentOutcome/index.tsx +++ b/apps/pay/components/PaymentOutcome/index.tsx @@ -95,6 +95,7 @@ function PaymentOutcome({ paymentRequest, paymentAmount, dispatch }: Props) {
success icon { expect(paymentResponse.body.data.lnInvoicePaymentSend.status).to.equal( "SUCCESS", ) + cy.get("[data-testid=success-icon]").should("exist") + cy.get("[data-testid=success-icon]").should("be.visible") }, ) })