title: Angular Hybrid App Test "Cannot read property 'nativeElement' of null"
body: <p>I have a simple test:</p>
  
  <pre><code>it ('should be able to navigate to add program', fakeAsync(() =&gt; {
    let href = fixture.debugElement.query(By.css('.add-program-btn'));
    let link = href.nativeElement.getAttribute('href');
    expect(link).toEqual('/program/new');
  }));
  </code></pre>
  
  <p>And keep getting an error:</p>
  
  <pre><code>TypeError: Cannot read property 'nativeElement' of null
  </code></pre>
  
  <p>I've tried using <code>tick()</code> with like <code>20000</code>, and adding <code>fixture.detectChanges()</code> but nothing works. Another test that checks if a button was clicked and a function called has the same error. Is it that it can't find the element?</p>
  
  <p>Everything this test is using is in Angular so I don't think it's because it's a hybrid app.</p>
  
  <p>Thanks in advance.</p>