overleaf/services/web/test/frontend/features/subscription/helpers/payment.ts
ilkin-overleaf 8616c53839 Merge pull request #12031 from overleaf/ii-payment-page-migration-three-d-secure-currency-change
[web] 3DS currency change fix

GitOrigin-RevId: e88c773c6576e55803df3b2ec6a6acb1df80e8f2
2023-03-02 09:04:13 +00:00

12 lines
460 B
TypeScript

export function fillForm() {
cy.findByTestId('test-card-element').within(() => {
cy.get('input').each(el => {
cy.wrap(el).type('1', { delay: 0 })
})
})
cy.findByLabelText(/first name/i).type('1', { delay: 0 })
cy.findByLabelText(/last name/i).type('1', { delay: 0 })
cy.findByLabelText('Address').type('1', { delay: 0 })
cy.findByLabelText(/postal code/i).type('1', { delay: 0 })
cy.findByLabelText(/country/i).select('Bulgaria')
}