feat(footer): move noscript hint to index.html and link home from imprint
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
afc9b875d2
commit
6e76b8d199
3 files changed
+16
-10
No files matched your search
@@ -80,6 +80,13 @@ describe('FooterComponent', (): void => {
|
||||
expect(imprintLink).toBeTruthy();
|
||||
});
|
||||
|
||||
it('should link back to the portfolio instead of the imprint on the imprint page', (): void => {
|
||||
fixture.componentRef.setInput('showImprintLink', false);
|
||||
fixture.detectChanges();
|
||||
const links = Array.from((fixture.nativeElement as HTMLElement).querySelectorAll('a'));
|
||||
expect(links.map((a): string => a.textContent?.trim() ?? '')).toEqual(['Portfolio']);
|
||||
});
|
||||
|
||||
it('should contain a footer element', (): void => {
|
||||
const el = fixture.nativeElement as HTMLElement;
|
||||
expect(el.querySelector('footer')).not.toBeNull();
|
||||
|
||||
Reference in new issue
Block a user