mirror of
				https://github.com/invoiceninja/invoiceninja.git
				synced 2025-11-04 00:17:34 -05:00 
			
		
		
		
	Payments: Assert page loads
This commit is contained in:
		
							parent
							
								
									553ce88af0
								
							
						
					
					
						commit
						213e1ab957
					
				
							
								
								
									
										30
									
								
								tests/Browser/ClientPortal/PaymentsTest.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										30
									
								
								tests/Browser/ClientPortal/PaymentsTest.php
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,30 @@
 | 
			
		||||
<?php
 | 
			
		||||
 | 
			
		||||
namespace Tests\Browser\ClientPortal;
 | 
			
		||||
 | 
			
		||||
use Laravel\Dusk\Browser;
 | 
			
		||||
use Tests\Browser\Pages\ClientPortal\Login;
 | 
			
		||||
use Tests\DuskTestCase;
 | 
			
		||||
 | 
			
		||||
class PaymentsTest extends DuskTestCase
 | 
			
		||||
{
 | 
			
		||||
    protected function setUp(): void
 | 
			
		||||
    {
 | 
			
		||||
        parent::setUp();
 | 
			
		||||
 | 
			
		||||
        foreach (static::$browsers as $browser) {
 | 
			
		||||
            $browser->driver->manage()->deleteAllCookies();
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    public function testPageLoads()
 | 
			
		||||
    {
 | 
			
		||||
        $this->browse(function (Browser $browser) {
 | 
			
		||||
            $browser
 | 
			
		||||
                ->visit(new Login())
 | 
			
		||||
                ->auth()
 | 
			
		||||
                ->visitRoute('client.payments.index')
 | 
			
		||||
                ->assertSee('Recurring Invoices');
 | 
			
		||||
        });
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user