2020-05-26 23:45:29 +02:00
|
|
|
context('Payments', () => {
|
|
|
|
beforeEach(() => {
|
|
|
|
cy.clientLogin();
|
|
|
|
});
|
|
|
|
|
|
|
|
it('should show payments page', () => {
|
|
|
|
cy.visit('/client/payments');
|
|
|
|
cy.location().should(location => {
|
|
|
|
expect(location.pathname).to.eq('/client/payments');
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
it('should show payments text', () => {
|
|
|
|
cy.visit('/client/payments');
|
|
|
|
|
|
|
|
cy.get('body')
|
2021-05-03 17:25:03 +02:00
|
|
|
.find('[data-ref=meta-title]')
|
2020-05-26 23:45:29 +02:00
|
|
|
.first()
|
|
|
|
.should('contain.text', 'Payments');
|
|
|
|
});
|
|
|
|
|
|
|
|
it('should have per page options dropdown', () => {
|
|
|
|
cy.visit('/client/payments');
|
|
|
|
|
|
|
|
cy.get('body')
|
|
|
|
.find('select')
|
|
|
|
.first()
|
|
|
|
.should('have.value', '10');
|
|
|
|
});
|
2020-10-15 10:50:53 +02:00
|
|
|
});
|