mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-18 00:53:10 +01:00
31 lines
783 B
JavaScript
Vendored
31 lines
783 B
JavaScript
Vendored
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')
|
|
.find('span')
|
|
.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');
|
|
});
|
|
});
|