2021-07-02 16:58:30 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Tests\Browser\ClientPortal;
|
|
|
|
|
|
|
|
use Laravel\Dusk\Browser;
|
|
|
|
use Tests\Browser\Pages\ClientPortal\Login;
|
|
|
|
use Tests\DuskTestCase;
|
|
|
|
|
|
|
|
class PaymentMethodsTest extends DuskTestCase
|
|
|
|
{
|
|
|
|
protected function setUp(): void
|
|
|
|
{
|
|
|
|
parent::setUp();
|
|
|
|
|
|
|
|
foreach (static::$browsers as $browser) {
|
|
|
|
$browser->driver->manage()->deleteAllCookies();
|
|
|
|
}
|
2021-07-05 10:29:52 +02:00
|
|
|
|
|
|
|
$this->browse(function (Browser $browser) {
|
|
|
|
$browser
|
|
|
|
->visit(new Login())
|
|
|
|
->auth();
|
|
|
|
});
|
2021-07-02 16:58:30 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
public function testPageLoads()
|
|
|
|
{
|
|
|
|
$this->browse(function (Browser $browser) {
|
|
|
|
$browser
|
|
|
|
->visitRoute('client.payment_methods.index')
|
2021-07-05 10:29:52 +02:00
|
|
|
->assertSee('Payment Methods')
|
|
|
|
->visitRoute('client.logout');
|
2021-07-02 16:58:30 +02:00
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|