2020-05-26 23:45:29 +02:00
|
|
|
context('Payment methods', () => {
|
|
|
|
beforeEach(() => {
|
|
|
|
cy.clientLogin();
|
|
|
|
});
|
|
|
|
|
|
|
|
it('should show payment methods page', () => {
|
|
|
|
cy.visit('/client/payment_methods');
|
|
|
|
cy.location().should(location => {
|
|
|
|
expect(location.pathname).to.eq('/client/payment_methods');
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
it('should show payment methods text', () => {
|
|
|
|
cy.visit('/client/payment_methods');
|
|
|
|
|
|
|
|
cy.get('body')
|
2020-06-30 14:53:30 +02:00
|
|
|
.find('span')
|
2020-05-26 23:45:29 +02:00
|
|
|
.first()
|
|
|
|
.should('contain.text', 'Payment Method');
|
|
|
|
});
|
|
|
|
|
|
|
|
it('should have per page options dropdown', () => {
|
|
|
|
cy.visit('/client/payment_methods');
|
|
|
|
|
|
|
|
cy.get('body')
|
|
|
|
.find('select')
|
|
|
|
.first()
|
|
|
|
.should('have.value', '10');
|
|
|
|
});
|
|
|
|
});
|