Component Testing with Fixtures
Explain how ComponentFixture and DebugElement are used to query the rendered DOM and simulate user interaction in tests.
Once TestBed.createComponent() produces a ComponentFixture, most component tests follow the same basic loop: change some state (either directly on the component instance, or by simulating a user interaction on the DOM), call fixture.detectChanges() to let Angular re-render, and then assert against the resulting rendered DOM. Interviewers care about this because it's the everyday mechanics of writing any meaningful component test, distinct from just knowing what TestBed is conceptually.
It's like testing a vending machine by actually pressing its buttons and checking what comes out of the slot, rather than opening up the back panel and manually flipping the internal dispensing mechanism — the former genuinely proves the buttons are wired correctly, the latter doesn't.