oficina / equipo Public

plan3test: Teams hierarchy drive follows today's navigation

TestTeamsHierarchyBrowser fails on main as it does here: 2e53061 took
the Teams switch (#nav-teams) out of the sidebar's team heading and
Journey out of the nav ("old pages out of the nav"), and the phone home
screen hides its back strip on purpose (index browser test). The drive
is browser-tagged, which no hosted CI lane builds (TAGS=testbuild), so
nothing caught it.

It now finds Teams in the desktop Settings rail, opens the team from
the phone directory, checks the home screen's parent is Teams without
asking for a visible strip, and reaches Journey by its address; the
task and thread parents are checked as before. Passes here and on
ac4a809.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Paul Campbell pushed by claude agent, operated by paul@keymail.dev 7591ab7d356efd9814147eb18c138bd6cc49aa75 parent 824e689
1 file changed, +16 −8
  • internal/plan3test/teams_navigation_browser_test.go +16 −8

CI failed — run details

diff --git a/internal/plan3test/teams_navigation_browser_test.go b/internal/plan3test/teams_navigation_browser_test.go
index f8148530..fdcf750a 100644
--- a/internal/plan3test/teams_navigation_browser_test.go
+++ b/internal/plan3test/teams_navigation_browser_test.go
@@ -53,20 +53,28 @@ func TestTeamsHierarchyBrowser(t *testing.T) {
_, err := cdp.Call(ctx, target, emulation.SetScriptExecutionDisabled, emulation.SetScriptExecutionDisabledParams{Value: true})
return err
}))
- run("desktop sidebar", chromedp.EmulateViewport(1280, 900), chromedp.Navigate(rig.Origin+"/conversation"))
- if !harness.Evaluate[bool](rig, `document.querySelector('#nav-teams').getBoundingClientRect().width>0 && document.querySelector('[equipo-team-heading]').contains(document.querySelector('#nav-teams'))`) {
- t.Fatal("desktop Teams link hidden")
+ // Teams left the sidebar's team heading for Settings in 2e53061
+ // ("old pages out of the nav"; equipotest pins the heading without
+ // it). On a desktop the Settings rail lists it.
+ run("desktop Settings", chromedp.EmulateViewport(1280, 900), chromedp.Navigate(rig.Origin+"/conversation/settings"))
+ if !harness.Evaluate[bool](rig, `(()=>{const a=document.querySelector('[equipo-settings-rail] a[data-rail-settings="teams"]');return !!a && a.getAttribute('href')==='/teams' && a.getBoundingClientRect().width>0 && !document.querySelector('#nav-teams')})()`) {
+ t.Fatal("desktop Settings rail lacks a visible Teams link")
}
run("phone directory", chromedp.EmulateViewport(390, 844), chromedp.Navigate(rig.Origin+"/teams"))
if !harness.Evaluate[bool](rig, `document.querySelector('[equipo-current-team]').getBoundingClientRect().width>0 && document.documentElement.scrollWidth<=innerWidth`) {
t.Fatal("phone directory hidden or overflowing")
}
- run("open current team", chromedp.Click(chromedp.CSS(`[equipo-current-team]`)), chromedp.WaitVisible(chromedp.CSS(`#nav-journey`)))
- if !harness.Evaluate[bool](rig, `document.querySelector('[rst-shell-back] a').getAttribute('href')==='/teams' && document.querySelector('[rst-shell-back]').getBoundingClientRect().height>0`) {
- t.Fatal("team index lacks visible Teams parent")
+ run("open current team", chromedp.Click(chromedp.CSS(`[equipo-current-team]`)), chromedp.WaitVisible(chromedp.CSS(`#nav-tasks`)))
+ // The phone home screen hides its back strip on purpose (index
+ // browser test: no strip above the home screen); its parent is still
+ // Teams.
+ if !harness.Evaluate[bool](rig, `document.querySelector('[rst-shell-back] a').getAttribute('href')==='/teams'`) {
+ t.Fatal("team index parent is not Teams")
}
- run("open Journey", chromedp.Click(chromedp.CSS(`#nav-journey`)), chromedp.WaitVisible(chromedp.CSS(`main a[href="/tasks/`+task.ID+`"]`)))
- if !harness.Evaluate[bool](rig, `document.querySelector('[rst-shell-back] a').getAttribute('href')==='/work#nav-journey'`) {
+ // Journey is an old page out of the nav since 2e53061; it is still
+ // served for its links and its parent is still the team.
+ run("open Journey", chromedp.Navigate(rig.Origin+"/journey"), chromedp.WaitVisible(chromedp.CSS(`main a[href="/tasks/`+task.ID+`"]`)))
+ if !harness.Evaluate[bool](rig, `document.querySelector('[rst-shell-back] a').getAttribute('href').startsWith('/work')`) {
t.Fatal("page parent is not team")
}
run("open task", chromedp.Click(chromedp.CSS(`main a[href="/tasks/`+task.ID+`"]`)), chromedp.WaitVisible(chromedp.CSS(`main a[href="/tasks/`+task.ID+`/thread"]`)))