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:
@@ -128,14 +128,11 @@ describe('UX-06E.D.3.A catálogo permanentemente desplegado', () => {
|
||||
expect(fixture.nativeElement.querySelector('.pin-toggle').getAttribute('aria-label')).toContain(title);
|
||||
http.expectNone(() => true);
|
||||
});
|
||||
it('UX-06B mantiene una sola navegación entre dominios, sin duplicar botones', () => {
|
||||
// Our shell has no domain selector of its own (unlike upstream's App),
|
||||
// so the page keeps exactly the one it always had -- not duplicated.
|
||||
// (Needs a render pass first: unlike upstream's trivial "absent" check,
|
||||
// confirming presence requires the template to have actually painted.)
|
||||
it('UX-06B la navegación entre dominios es la del encabezado: la página no la duplica', () => {
|
||||
// The selector is in the shell's header (app-encabezado.spec.ts); a second set of buttons on the page would duplicate it.
|
||||
fixture.detectChanges();
|
||||
expect(fixture.nativeElement.querySelectorAll('nav.domain-nav')).toHaveLength(1);
|
||||
expect(fixture.nativeElement.querySelectorAll('nav.domain-nav a')).toHaveLength(3);
|
||||
expect(fixture.nativeElement.querySelectorAll('nav.domain-nav')).toHaveLength(0);
|
||||
expect(fixture.nativeElement.querySelectorAll('a[href^="/indicadores/"]')).toHaveLength(0);
|
||||
expect(cards()).toHaveLength(0);
|
||||
// Constructing the page legitimately initializes its domain catalog.
|
||||
const catalogRequest = http.expectOne('/tea/indicadores');
|
||||
|
||||
Reference in New Issue
Block a user