Skip to content

Commit

Permalink
chore: added success-icon in test
Browse files Browse the repository at this point in the history
  • Loading branch information
siddhart1o1 committed Feb 16, 2024
1 parent b68e584 commit b4ab90c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions apps/pay/components/PaymentOutcome/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ function PaymentOutcome({ paymentRequest, paymentAmount, dispatch }: Props) {
<div className={styles.container}>
<div aria-labelledby="Payment successful">
<Image
data-testid="success-icon"
src="/icons/success-icon.svg"
alt="success icon"
width="104"
Expand Down
2 changes: 2 additions & 0 deletions apps/pay/cypress/e2e/point-of-sale.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,8 @@ describe("Point of Sale", () => {
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")
},
)
})
Expand Down

0 comments on commit b4ab90c

Please sign in to comment.