feat(shell): domain menu in the header, as in the deployed dev version
How: on /indicadores/<domain> routes the App header shows the platform title and a mat-menu button named after the current domain, listing the other two (the same markup and styles as the deployed WebApp's app.html). Other routes (Conectar, Gobernanza) keep the "Análisis de información" breadcrumb. The indicators page drops its own TEA/CaCu/CaMa links, so there is one switcher. Implications: domain switching now depends on the App shell; a page embedded elsewhere has no way to change domain by itself. Specs that asserted the in-page links now assert their absence, and app.spec covers the menu.
This commit is contained in:
@@ -44,8 +44,8 @@ describe('UX-04 navegación Angular', () => {
|
||||
const harness = await setup();
|
||||
await harness.navigateByUrl('/indicadores/' + domain, IndicadoresPage);
|
||||
load(domain, harness); harness.detectChanges();
|
||||
// Our shell keeps the domain nav on the page itself, see indicadores-page.html.
|
||||
expect(harness.routeNativeElement!.querySelectorAll('nav.domain-nav a')).toHaveLength(3);
|
||||
// Domain switching lives in the App header (app.spec.ts); the page must not add a second one.
|
||||
expect(harness.routeNativeElement!.querySelectorAll('nav.domain-nav a')).toHaveLength(0);
|
||||
http.expectNone(() => true);
|
||||
});
|
||||
it('mantiene la ruta, restaura borradores y reconsulta la aplicación entre TEA/CaCu/CaMa', async () => {
|
||||
|
||||
Reference in New Issue
Block a user