From 7ab3bc0ec0208b9e7d5cf17991f2198e87aea2a4 Mon Sep 17 00:00:00 2001 From: "juvenal.diaz" Date: Sat, 5 Dec 2026 08:34:42 -0600 Subject: [PATCH] Fix OpsProof Dex redirect assertion --- apps/opsproof/overlay/tests/feature/authentication_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) }