Angular - Testing
Which of the following is the correct way to get a DebugElement for a button with CSS class
submit-btn in a test fixture?submit-btn in a test fixture?fixture.debugElement.query(By.css('.submit-btn')) after initial detectChanges(). Only C matches; A returns native DOM, B/D invalid methods.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions