Changeset View
Changeset View
Standalone View
Standalone View
apps/marlin-wallet/web/cypress/e2e/shared-image-qr.cy.ts
| Show First 20 Lines • Show All 153 Lines • ▼ Show 20 Lines | it('opens send screen with Firma amount when shared image decodes to Firma BIP21 payment', () => { | ||||
| const dataUrl = `data:image/png;base64,${b64}`; | const dataUrl = `data:image/png;base64,${b64}`; | ||||
| postNativeBridgeMessage({ | postNativeBridgeMessage({ | ||||
| type: 'DECODE_QR_FROM_SHARED_IMAGE', | type: 'DECODE_QR_FROM_SHARED_IMAGE', | ||||
| data: dataUrl, | data: dataUrl, | ||||
| }); | }); | ||||
| }); | }); | ||||
| cy.get('#send-screen').should('not.have.class', 'hidden'); | cy.get('#send-screen').should('not.have.class', 'hidden'); | ||||
| cy.get('#ticker-label').should('contain', 'FIRMA'); | cy.get('#ticker-label').should('contain', 'Firma α'); | ||||
| cy.get('#recipient-address').should( | cy.get('#recipient-address').should( | ||||
| 'have.value', | 'have.value', | ||||
| firmaPaymentRecipient, | firmaPaymentRecipient, | ||||
| ); | ); | ||||
| cy.get('#send-amount').should('have.value', firmaPaymentQty); | cy.get('#send-amount').should('have.value', firmaPaymentQty); | ||||
| cy.get('#send-amount').should('have.attr', 'readonly', 'readonly'); | cy.get('#send-amount').should('have.attr', 'readonly', 'readonly'); | ||||
| }); | }); | ||||
| }); | }); | ||||
| }); | }); | ||||