mirror of
				https://github.com/invoiceninja/invoiceninja.git
				synced 2025-11-03 23:47:32 -05:00 
			
		
		
		
	
		
			
				
	
	
		
			31 lines
		
	
	
		
			728 B
		
	
	
	
		
			JavaScript
		
	
	
	
		
			Vendored
		
	
	
	
			
		
		
	
	
			31 lines
		
	
	
		
			728 B
		
	
	
	
		
			JavaScript
		
	
	
	
		
			Vendored
		
	
	
	
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')
 | 
						|
            .find('span')
 | 
						|
            .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');
 | 
						|
    });
 | 
						|
});
 |