Files
agiledancers/agiledancers-fe/src/app/app.spec.ts
2026-10-27 15:34:56 +01:00

20 lines
723 B
TypeScript

import { TestBed } from '@angular/core/testing';
import { provideRouter } from '@angular/router';
import { App } from './app';
describe('Application shell', () => {
it('provides navigation and a keyboard skip link', async () => {
await TestBed.configureTestingModule({
imports: [App],
providers: [provideRouter([])],
}).compileComponents();
const fixture = TestBed.createComponent(App);
await fixture.whenStable();
const page = fixture.nativeElement as HTMLElement;
expect(page.querySelector('nav[aria-label="Hoofdnavigatie"] a')?.getAttribute('href')).toBe(
'/schools',
);
expect(page.querySelector('.skip-link')?.getAttribute('href')).toBe('#main-content');
});
});