diff --git a/app/Http/Controllers/Auth/LoginController.php b/app/Http/Controllers/Auth/LoginController.php index e6533d2..02a152a 100644 --- a/app/Http/Controllers/Auth/LoginController.php +++ b/app/Http/Controllers/Auth/LoginController.php @@ -21,6 +21,6 @@ class LoginController extends Controller ]); } - return redirect('/backstage/concerts'); + return redirect('/backstage/concerts/new'); } } diff --git a/tests/Browser/PromoterLoginTest.php b/tests/Browser/PromoterLoginTest.php index 2bfda86..cd59e28 100644 --- a/tests/Browser/PromoterLoginTest.php +++ b/tests/Browser/PromoterLoginTest.php @@ -24,7 +24,7 @@ class PromoterLoginTest extends DuskTestCase ->type('email', 'jane@example.com') ->type('password', 'super-secret-password') ->press('Log in') - ->assertPathIs('/backstage/concerts'); + ->assertPathIs('/backstage/concerts/new'); }); } diff --git a/tests/Feature/PromoterLoginTest.php b/tests/Feature/PromoterLoginTest.php index a265747..d9d4b8d 100644 --- a/tests/Feature/PromoterLoginTest.php +++ b/tests/Feature/PromoterLoginTest.php @@ -26,7 +26,7 @@ class PromoterLoginTest extends TestCase 'password' => 'super-secret-password', ]); - $response->assertRedirect('/backstage/concerts'); + $response->assertRedirect('/backstage/concerts/new'); $this->assertTrue(Auth::check()); $this->assertTrue(Auth::user()->is($user)); }