@rebilly/framepay-react
Version:
A React wrapper for Rebilly's FramePay offering out-of-the-box support for Redux and other common React features
28 lines (22 loc) • 850 B
text/typescript
describe('bank-separate', () => {
beforeEach(() => {
cy.visit({ url: '/bank-separate' });
});
it('should load the page', () => {
cy.title().should('eq', 'Test Bank Page Separate Fields');
});
it('should inject the bank iframes into the page', () => {
cy.get('iframe#bbanAccountType');
cy.get('iframe#bbanAccountNumber');
cy.get('iframe#bbanRoutingNumber');
});
it('should call the on-ready BankAccountType element hook', () => {
cy.get('#events-bankAccountType-onReady-true');
});
it('should call the on-ready BankAccountNumber element hook', () => {
cy.get('#events-bankAccountNumber-onReady-true');
});
it('should call the on-ready BankRoutingNumber element hook', () => {
cy.get('#events-bankRoutingNumber-onReady-true');
});
});