package feature_test import ( "testing" "go.laravel.com/laraveltest" "app/tests" ) func TestPublicDemoUsesSanitizedFixtureWithoutAuthentication(t *testing.T) { client := tests.New(t, laraveltest.Env(map[string]string{ "OPSPROOF_JEANNIE_URL": "http://127.0.0.1:1", "OPSPROOF_JEANNIE_TOKEN": "must-not-be-used", })) client.WithoutRedirects().Get("/").AssertRedirect("/login") client.Get("/demo").AssertOK().AssertInertia("Demo"). AssertProp("demo.scope", "opi5"). AssertProp("demo.target", "k3s-storage"). AssertProp("demo.outcome", "validated") }