equipotest: /teams is a Settings section in TestRailRoutes
Hosted CI on 7591ab7 failed TestRailRoutes twice: "ambiguous navigation position: /teams: 3". Teams now renders as a Settings section, so it is placed at three levels: the app rail's Settings, the Settings rail's Teams and the in-page Settings menu's Teams. The test expects exactly those three for /teams and names any that is missing.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 file changed,
+11
−0
internal/equipotest/pages_test.go+11 −0
CI passed — run details
Intent
diff --git a/internal/equipotest/pages_test.go b/internal/equipotest/pages_test.go| index 3a035b9f..0de1ac6e 100644 |
| --- a/internal/equipotest/pages_test.go |
| +++ b/internal/equipotest/pages_test.go |
| @@ -118,6 +118,17 @@ func TestRailRoutes(t *testing.T) { |
| t.Fatal("not phone index") |
| } |
| } |
| + // Teams is a Settings section (Paul, 2026-11-11): one position at |
| + // each of three levels, the app rail's Settings, the Settings |
| + // rail's Teams and the in-page Settings menu's Teams. |
| + if path == "/teams" { |
| + want = 3 |
| + for _, mark := range []string{`id="nav-settings-hub" href="/conversation/settings" aria-current="page"`, `data-rail-settings="teams" aria-current="page"`, `data-settings-link="teams" aria-current="page"`} { |
| + if !strings.Contains(body, mark) { |
| + t.Fatalf("/teams is not placed in Settings: no %s", mark) |
| + } |
| + } |
| + } |
| if currentCount != want { |
| t.Fatalf("ambiguous navigation position: %s: %d", path, currentCount) |
| } |