Fix OpsProof Dex redirect assertion
This commit is contained in:
parent
9b3bdc7a12
commit
7ab3bc0ec0
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue