Lint PHP code psr-12, add GH action
This commit is contained in:
@@ -12,30 +12,28 @@ it('can login onboarded users', function () {
|
||||
$this->createUserWorkspace($user);
|
||||
|
||||
$this->browse(function ($browser) use ($user) {
|
||||
$browser->visit(new Login)
|
||||
$browser->visit(new Login())
|
||||
->submit($user->email, 'password')
|
||||
->assertPageIs(Home::class);
|
||||
});
|
||||
});
|
||||
|
||||
it('cannot login with invalid credentials',function()
|
||||
{
|
||||
it('cannot login with invalid credentials', function () {
|
||||
$this->browse(function ($browser) {
|
||||
$browser->visit(new Login)
|
||||
$browser->visit(new Login())
|
||||
->submit('test@test.app', 'password')
|
||||
->pause(100)
|
||||
->assertSee('These credentials do not match our records.');
|
||||
});
|
||||
});
|
||||
|
||||
it('can log out the user',function()
|
||||
{
|
||||
it('can log out the user', function () {
|
||||
$user = User::factory()->create();
|
||||
|
||||
$this->browse(function ($browser) use ($user) {
|
||||
$browser->visit(new Login)
|
||||
$browser->visit(new Login())
|
||||
->submit($user->email, 'password')
|
||||
->on(new Home)
|
||||
->on(new Home())
|
||||
->clickLogout()
|
||||
->assertPageIs(Login::class);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user