fix: style

This commit is contained in:
2026-04-29 22:24:15 +02:00
parent 1e2b1efc66
commit 3f51d3c505
7 changed files with 186 additions and 474 deletions
+7 -2
View File
@@ -25,9 +25,9 @@ describe('AppComponent', (): void => {
expect(component).toBeTruthy();
});
it('should render the language selector on first visit', (): void => {
it('should keep the language selector closed on first visit', (): void => {
const el = fixture.nativeElement as HTMLElement;
expect(el.querySelector('.language-overlay')).not.toBeNull();
expect(el.querySelector('.language-overlay')).toBeNull();
});
it('should preselect English by default', (): void => {
@@ -35,6 +35,11 @@ describe('AppComponent', (): void => {
expect(comp.selectedLanguage()).toBe('en');
});
it('should render the language switcher on first visit', (): void => {
const el = fixture.nativeElement as HTMLElement;
expect(el.querySelector('.language-switcher')).not.toBeNull();
});
it('should always render a router-outlet element', (): void => {
const el = fixture.nativeElement as HTMLElement;
expect(el.querySelector('router-outlet')).not.toBeNull();