mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Update authentication process
This commit is contained in:
parent
1d1d04ccd1
commit
53b4bd8d57
@ -15,16 +15,21 @@ class CreditsTest extends DuskTestCase
|
||||
foreach (static::$browsers as $browser) {
|
||||
$browser->driver->manage()->deleteAllCookies();
|
||||
}
|
||||
|
||||
$this->browse(function (Browser $browser) {
|
||||
$browser
|
||||
->visit(new Login())
|
||||
->auth();
|
||||
});
|
||||
}
|
||||
|
||||
public function testPageLoads()
|
||||
{
|
||||
$this->browse(function (Browser $browser) {
|
||||
$browser
|
||||
->visit(new Login())
|
||||
->auth()
|
||||
->visitRoute('client.credits.index')
|
||||
->assertSee('Credits');
|
||||
->assertSee('Credits')
|
||||
->visitRoute('client.logout');
|
||||
});
|
||||
}
|
||||
}
|
||||
|
@ -15,16 +15,21 @@ class DocumentsTest extends DuskTestCase
|
||||
foreach (static::$browsers as $browser) {
|
||||
$browser->driver->manage()->deleteAllCookies();
|
||||
}
|
||||
|
||||
$this->browse(function (Browser $browser) {
|
||||
$browser
|
||||
->visit(new Login())
|
||||
->auth();
|
||||
});
|
||||
}
|
||||
|
||||
public function testPageLoads()
|
||||
{
|
||||
$this->browse(function (Browser $browser) {
|
||||
$browser
|
||||
->visit(new Login())
|
||||
->auth()
|
||||
->visitRoute('client.documents.index')
|
||||
->assertSee('Invoices');
|
||||
->assertSee('Invoices')
|
||||
->visitRoute('client.logout');
|
||||
});
|
||||
}
|
||||
}
|
||||
|
@ -15,16 +15,21 @@ class PaymentMethodsTest extends DuskTestCase
|
||||
foreach (static::$browsers as $browser) {
|
||||
$browser->driver->manage()->deleteAllCookies();
|
||||
}
|
||||
|
||||
$this->browse(function (Browser $browser) {
|
||||
$browser
|
||||
->visit(new Login())
|
||||
->auth();
|
||||
});
|
||||
}
|
||||
|
||||
public function testPageLoads()
|
||||
{
|
||||
$this->browse(function (Browser $browser) {
|
||||
$browser
|
||||
->visit(new Login())
|
||||
->auth()
|
||||
->visitRoute('client.payment_methods.index')
|
||||
->assertSee('Payment Methods');
|
||||
->assertSee('Payment Methods')
|
||||
->visitRoute('client.logout');
|
||||
});
|
||||
}
|
||||
}
|
||||
|
@ -15,16 +15,21 @@ class PaymentsTest extends DuskTestCase
|
||||
foreach (static::$browsers as $browser) {
|
||||
$browser->driver->manage()->deleteAllCookies();
|
||||
}
|
||||
|
||||
$this->browse(function (Browser $browser) {
|
||||
$browser
|
||||
->visit(new Login())
|
||||
->auth();
|
||||
});
|
||||
}
|
||||
|
||||
public function testPageLoads()
|
||||
{
|
||||
$this->browse(function (Browser $browser) {
|
||||
$browser
|
||||
->visit(new Login())
|
||||
->auth()
|
||||
->visitRoute('client.payments.index')
|
||||
->assertSee('Recurring Invoices');
|
||||
->assertSee('Recurring Invoices')
|
||||
->visitRoute('client.logout');
|
||||
});
|
||||
}
|
||||
}
|
||||
|
@ -15,16 +15,21 @@ class QuotesTest extends DuskTestCase
|
||||
foreach (static::$browsers as $browser) {
|
||||
$browser->driver->manage()->deleteAllCookies();
|
||||
}
|
||||
|
||||
$this->browse(function (Browser $browser) {
|
||||
$browser
|
||||
->visit(new Login())
|
||||
->auth();
|
||||
});
|
||||
}
|
||||
|
||||
public function testPageLoads()
|
||||
{
|
||||
$this->browse(function (Browser $browser) {
|
||||
$browser
|
||||
->visit(new Login())
|
||||
->auth()
|
||||
->visitRoute('client.quotes.index')
|
||||
->assertSee('Quotes');
|
||||
->assertSee('Quotes')
|
||||
->visitRoute('client.logout');
|
||||
});
|
||||
}
|
||||
}
|
||||
|
@ -15,16 +15,21 @@ class RecurringInvoices extends DuskTestCase
|
||||
foreach (static::$browsers as $browser) {
|
||||
$browser->driver->manage()->deleteAllCookies();
|
||||
}
|
||||
|
||||
$this->browse(function (Browser $browser) {
|
||||
$browser
|
||||
->visit(new Login())
|
||||
->auth();
|
||||
});
|
||||
}
|
||||
|
||||
public function testPageLoads()
|
||||
{
|
||||
$this->browse(function (Browser $browser) {
|
||||
$browser
|
||||
->visit(new Login())
|
||||
->auth()
|
||||
->visitRoute('client.recurring_invoices.index')
|
||||
->assertSee('Recurring Invoices');
|
||||
->assertSee('Recurring Invoices')
|
||||
->visitRoute('client.logout');
|
||||
});
|
||||
}
|
||||
}
|
||||
|
@ -15,16 +15,21 @@ class SubscriptionsTest extends DuskTestCase
|
||||
foreach (static::$browsers as $browser) {
|
||||
$browser->driver->manage()->deleteAllCookies();
|
||||
}
|
||||
|
||||
$this->browse(function (Browser $browser) {
|
||||
$browser
|
||||
->visit(new Login())
|
||||
->auth();
|
||||
});
|
||||
}
|
||||
|
||||
public function testPageLoads()
|
||||
{
|
||||
$this->browse(function (Browser $browser) {
|
||||
$browser
|
||||
->visit(new Login())
|
||||
->auth()
|
||||
->visitRoute('client.subscriptions.index')
|
||||
->assertSee('Invoices');
|
||||
->assertSee('Invoices')
|
||||
->visitRoute('client.logout');
|
||||
});
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user