diff --git a/apps/opsproof/overlay/tests/feature/authentication_test.go b/apps/opsproof/overlay/tests/feature/authentication_test.go index f18d1aa..b69df56 100644 --- a/apps/opsproof/overlay/tests/feature/authentication_test.go +++ b/apps/opsproof/overlay/tests/feature/authentication_test.go @@ -1,6 +1,7 @@ package feature_test import ( + "net/http" "testing" "go.laravel.com/auth/social" @@ -26,7 +27,7 @@ func TestDexLoginRequiresAnAllowedVerifiedOperator(t *testing.T) { Email: "operator@example.test", EmailVerified: true, }) - allowed.WithoutRedirects().Get("/auth/dex").AssertRedirect() + allowed.WithoutRedirects().Get("/auth/dex").AssertStatus(http.StatusFound) allowed.WithoutRedirects().Get("/auth/dex/callback").AssertRedirect("http://example.com/incidents/cluster/n8n") allowed.Get("/").AssertOK().AssertInertia("Welcome").AssertProp("operator.authenticated", true) }