places: Settings menu browser tests know the Places section
The menu and the desktop rail now list Places after Copy; at 390 the Places page is one column with its empty line.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 file changed,
+6
−3
internal/thintest/settings_browser_test.go+6 −3
CI cancelled — superseded by a newer push — run details
Intent
diff --git a/internal/thintest/settings_browser_test.go b/internal/thintest/settings_browser_test.go| index 46a52a6c..65ffb133 100644 |
| --- a/internal/thintest/settings_browser_test.go |
| +++ b/internal/thintest/settings_browser_test.go |
| @@ -92,7 +92,7 @@ func (p *innerPage) waitFor(cond func() bool, what string) { |
| // Settings menu is a second sidebar beside the section, the current one |
| // marked, the app's rail still there, and a section is a link away; at |
| // 390 /conversation/settings is the menu as full-row drill-ins with |
| -// chevrons (seven with Copy), and a section is its own page with Settings in its bar and no |
| +// chevrons (eight with Copy and Places), and a section is its own page with Settings in its bar and no |
| // menu. Light and dark; EQUIPO_BROWSER_ARTIFACTS keeps the shots. |
| func TestBrowserSettingsMenu(t *testing.T) { |
| r := newToolRig(t) |
| @@ -117,7 +117,7 @@ func TestBrowserSettingsMenu(t *testing.T) { |
| // Phone. |
| q := openInner(t, r.inst.URL, r.inst.Cookie(), 390, 844, true, scheme, "no-preference") |
| q.open("/conversation/settings") |
| - q.check(`(()=>{const ls=[...document.querySelectorAll('[equipo-settings-link]')];const body=document.querySelector('[equipo-settings-body]');return ls.length===8&&ls.every(a=>{const r=a.getBoundingClientRect();return r.height>=44&&r.width>=340&&getComputedStyle(a.querySelector('.icon:last-child')).display!=='none'})&&getComputedStyle(body).display==='none'&&document.documentElement.scrollWidth<=390})()`, scheme+" 390: the menu is not full-row drill-ins") |
| + q.check(`(()=>{const ls=[...document.querySelectorAll('[equipo-settings-link]')];const body=document.querySelector('[equipo-settings-body]');return ls.length===9&&ls.every(a=>{const r=a.getBoundingClientRect();return r.height>=44&&r.width>=340&&getComputedStyle(a.querySelector('.icon:last-child')).display!=='none'})&&getComputedStyle(body).display==='none'&&document.documentElement.scrollWidth<=390})()`, scheme+" 390: the menu is not full-row drill-ins") |
| q.wait(`document.getAnimations().every(a=>a.playState!=='running'||a.effect&&a.effect.getTiming().iterations===Infinity)`, "the slide settled") |
| q.shot("settings-list-390-" + scheme) |
| q.click(`[data-settings-link="thinking"]`) |
| @@ -130,6 +130,9 @@ func TestBrowserSettingsMenu(t *testing.T) { |
| q.open("/conversation/settings/housekeeping") |
| q.wait(`document.getAnimations().every(a=>a.playState!=='running'||a.effect&&a.effect.getTiming().iterations===Infinity)`, "the slide settled") |
| q.shot("settings-housekeeping-390-" + scheme) |
| + q.open("/conversation/settings/places") |
| + q.check(`(()=>{const h=document.querySelector('[equipo-settings-body] h1');return !!h&&!!document.querySelector('[equipo-places-empty]')&&document.documentElement.scrollWidth<=390})()`, scheme+" 390: the Places page is not one column with its empty line") |
| + q.shot("settings-places-390-" + scheme) |
| q.stop() |
| } |
| } |
| @@ -153,7 +156,7 @@ func TestBrowserSettingsRail(t *testing.T) { |
| p.check(`(()=>{sessionStorage.setItem('rail',JSON.stringify(document.querySelector('[rst-shell-rail]').getBoundingClientRect()));return document.querySelector('#rail').checkVisibility() && !document.querySelector('[equipo-settings-rail]')})()`, "1280: the main nav is not the rail outside Settings") |
| p.click(`#rail a[href="/conversation/settings"]`) |
| p.wait(`location.pathname==='/conversation/settings' && `+sliding+`(document.querySelector('[equipo-settings-rail]'))`, "the Settings nav slides in") |
| - p.check(`(()=>{const was=JSON.parse(sessionStorage.getItem('rail')),now=document.querySelector('[rst-shell-rail]').getBoundingClientRect();const n=document.querySelector('[equipo-settings-rail]');const links=[...n.querySelectorAll('a')].map(a=>a.dataset.railSettings||'leave');return Math.abs(was.left-now.left)<1&&Math.abs(was.width-now.width)<1&&!document.querySelector('#rail').checkVisibility()&&links.join()==='leave,autonomy,thinking,connections,connections-add,machines,machines-add,housekeeping,copy,notebook,teams'&&n.querySelector('[data-settings-leave]').textContent.trim()==='Equipo'&&n.querySelector('[data-settings-leave]').getAttribute('href')==='/tasks'})()`, "1280: the rail moved, or is not ‹ Equipo and the sections, or ‹ Equipo does not lead back to Tasks") |
| + p.check(`(()=>{const was=JSON.parse(sessionStorage.getItem('rail')),now=document.querySelector('[rst-shell-rail]').getBoundingClientRect();const n=document.querySelector('[equipo-settings-rail]');const links=[...n.querySelectorAll('a')].map(a=>a.dataset.railSettings||'leave');return Math.abs(was.left-now.left)<1&&Math.abs(was.width-now.width)<1&&!document.querySelector('#rail').checkVisibility()&&links.join()==='leave,autonomy,thinking,connections,connections-add,machines,machines-add,housekeeping,copy,places,notebook,teams'&&n.querySelector('[data-settings-leave]').textContent.trim()==='Equipo'&&n.querySelector('[data-settings-leave]').getAttribute('href')==='/tasks'})()`, "1280: the rail moved, or is not ‹ Equipo and the sections, or ‹ Equipo does not lead back to Tasks") |
| p.check(`(()=>{const n=document.querySelector('[equipo-settings-rail]').getBoundingClientRect(),b=document.querySelector('[equipo-settings-body]').getBoundingClientRect();return n.right<=b.left&&b.left-n.right<120&&!document.querySelector('[equipo-settings-nav]').checkVisibility()})()`, "1280: Settings is not two columns") |
| p.wait(settled, "the slide settled") |
| p.shot("settings-rail-1280") |