feat(indicadores): domain navigation moves to the header; searchVisible reads the catalog before the domain
The in-page domain buttons are removed, since the header selector replaces them. Also fixes a computed that, after a visit to CaMa, never became true again, so CaCu and TEA lost their search box when switched to from CaMa. (cherry picked from commit 3678c3653b33fcb98ba2334ca8f03f838dc86440)
This commit is contained in:
@@ -42,10 +42,8 @@ describe('Secciones compartidas por dominio', () => {
|
||||
expect(tabs.map(t => t.textContent?.trim())).toEqual(esperadas);
|
||||
expect(tabs.map(t => t.getAttribute('aria-selected'))).toEqual(esperadas.map((_, i) => String(i === 0)));
|
||||
expect(root.querySelector('[role="tablist"]')?.getAttribute('aria-label')).toContain(page.domainLabels[domain]);
|
||||
// Upstream moved domain selection to its own App shell; ours keeps it on
|
||||
// the page itself (see indicadores-page.html), since our shell is shared
|
||||
// with other workspace sections.
|
||||
expect(root.querySelector('nav.domain-nav')).not.toBeNull();
|
||||
// Domain switching lives in the shell's header (app.html), not on the page.
|
||||
expect(root.querySelector('nav.domain-nav')).toBeNull();
|
||||
for (const tab of tabs) {
|
||||
const panel = root.querySelector<HTMLElement>('#' + tab.getAttribute('aria-controls'))!;
|
||||
expect(panel.getAttribute('aria-labelledby')).toBe(tab.id);
|
||||
|
||||
Reference in New Issue
Block a user