mirror of
				https://github.com/invoiceninja/invoiceninja.git
				synced 2025-11-04 07:57:33 -05:00 
			
		
		
		
	Tests: Successful payments
This commit is contained in:
		
							parent
							
								
									9d46052752
								
							
						
					
					
						commit
						a6564e321b
					
				@ -17,7 +17,7 @@ use Laravel\Dusk\Browser;
 | 
				
			|||||||
use Tests\DuskTestCase;
 | 
					use Tests\DuskTestCase;
 | 
				
			||||||
use Tests\Browser\Pages\ClientPortal\Login;
 | 
					use Tests\Browser\Pages\ClientPortal\Login;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
class Bancontact extends DuskTestCase
 | 
					class BancontactTest extends DuskTestCase
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
    protected function setUp(): void
 | 
					    protected function setUp(): void
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
@ -37,4 +37,20 @@ class Bancontact extends DuskTestCase
 | 
				
			|||||||
                ->auth();
 | 
					                ->auth();
 | 
				
			||||||
        });
 | 
					        });
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    public function testSuccessfulPayment(): void
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        $this->browse(function (Browser $browser) {
 | 
				
			||||||
 | 
					            $browser
 | 
				
			||||||
 | 
					                ->visitRoute('client.invoices.index')
 | 
				
			||||||
 | 
					                ->click('@pay-now')
 | 
				
			||||||
 | 
					                ->press('Pay Now')
 | 
				
			||||||
 | 
					                ->clickLink('Undefined.')
 | 
				
			||||||
 | 
					                ->waitForText('Test profile')
 | 
				
			||||||
 | 
					                ->radio('final_state', 'paid')
 | 
				
			||||||
 | 
					                ->press('Continue')
 | 
				
			||||||
 | 
					                ->waitForText('Details of the payment')
 | 
				
			||||||
 | 
					                ->assertSee('Completed');
 | 
				
			||||||
 | 
					        });
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user