Override OpsProof anonymous welcome test
Homelab Main / validate (push) Failing after 1m52s Details
Homelab Main / running-update (push) Has been skipped Details
Homelab Main / debian-ops (push) Has been skipped Details

This commit is contained in:
juvenal.diaz 2026-12-05 08:06:39 -06:00
parent fa23118696
commit a6ef6d19f4
2 changed files with 18 additions and 0 deletions

View File

@ -0,0 +1,12 @@
package feature_test
import (
"testing"
"app/tests"
)
func TestTheWelcomePageRenders(t *testing.T) {
client := tests.New(t)
client.Get("/").AssertOK().AssertInertia("Demo").AssertProp("demo.outcome", "validated")
}

View File

@ -213,6 +213,12 @@ class OpsProofPipelineTests(unittest.TestCase):
self.assertIn("models.CurrentUser(request) == nil", welcome)
self.assertIn('web.Redirect("/demo")', welcome)
welcome_test = (
ROOT / "apps/opsproof/overlay/tests/feature/welcome_test.go"
).read_text(encoding="utf-8")
self.assertIn("TestTheWelcomePageRenders", welcome_test)
self.assertIn('AssertInertia("Demo")', welcome_test)
if __name__ == "__main__":
unittest.main()