mirror of
				https://github.com/invoiceninja/invoiceninja.git
				synced 2025-11-04 02:37:34 -05:00 
			
		
		
		
	* minor fix for payment notifications * styleci * Limit Self updating to self hosters only : * Fixes for designs * Minor fixes for self-update
		
			
				
	
	
		
			33 lines
		
	
	
		
			979 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			33 lines
		
	
	
		
			979 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
<?php
 | 
						|
 | 
						|
namespace Tests\Browser\Client;
 | 
						|
 | 
						|
use Illuminate\Foundation\Testing\DatabaseMigrations;
 | 
						|
use Laravel\Dusk\Browser;
 | 
						|
use Tests\DuskTestCase;
 | 
						|
 | 
						|
class PaymentMethods extends DuskTestCase
 | 
						|
{
 | 
						|
    public function testAddPaymentMethodPage(): void
 | 
						|
    {
 | 
						|
        $this->browse(function (Browser $browser) {
 | 
						|
            $browser->visit('/client/login')
 | 
						|
                ->type('email', 'user@example.com')
 | 
						|
                ->type('password', config('ninja.testvars.password'))
 | 
						|
                ->press('Login')
 | 
						|
                ->assertPathIs('/client/dashboard');
 | 
						|
 | 
						|
            $browser->visit(route('client.payment_methods.index'))
 | 
						|
                ->waitFor('.dataTable')
 | 
						|
                ->waitFor('.dataTables_empty')
 | 
						|
                ->assertSee('No records found');
 | 
						|
 | 
						|
            // TODO: Testing Stripe <iframe>
 | 
						|
 | 
						|
            $browser->visit(route('client.payment_methods.create'))
 | 
						|
                ->assertSee('Add Payment Method')
 | 
						|
                ->assertSee('Save');
 | 
						|
        });
 | 
						|
    }
 | 
						|
}
 |