RegistrationPage shows the signed-in BSN and submits to the BFF via the generated api-client, confirming with the returned reference; built from NL Design System (Utrecht) components. Wire the guarded route + app providers (DigiD OIDC + token interceptor + HttpClient), the NL DS theme, and lang=nl. Component tests (Testing Library) + axe (WCAG 2.1 AA) pass; a guard test covers libs/auth. Replace the demo eslint depConstraints (scope:shop/shared) with a permissive default. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
16 lines
509 B
TypeScript
16 lines
509 B
TypeScript
import { provideRouter } from '@angular/router';
|
|
import { render, screen } from '@testing-library/angular';
|
|
import { App } from './app';
|
|
|
|
describe('App', () => {
|
|
it('renders the router outlet shell', async () => {
|
|
const { container } = await render(App, {
|
|
providers: [provideRouter([])],
|
|
});
|
|
|
|
// The shell is a thin host for routed pages (the RegistrationPage owns the heading).
|
|
expect(container.querySelector('router-outlet')).toBeTruthy();
|
|
expect(screen).toBeTruthy();
|
|
});
|
|
});
|