title: Angular - Jasmine testing with PrimeNg Table - unable to verify row count inside of unittest
body: <p>i'm trying to create a unittest for a angular component which is using a PrimeNG table. It works as expected with <strong>ng serve</strong> inside the browser, but within a Jasmine test i'm unable to get the rendered HTML of the table. 
  When i inspect the markup it just contains the following line:</p>
  
  <p><code>&lt;p-table class="testtable"&gt;&lt;!--container--&gt;&lt;!--container--&gt;&lt;/p-table&gt;</code></p>
  
  <p>I created a new component with only static data to reproduce the issue:</p>
  
  <pre><code>import { Component, OnInit } from '@angular/core';
  
  @Component({
    selector: 'app-test',
    template: `
    &lt;p-table class="testtable" [value]="cars"&gt;
      &lt;ng-template pTemplate="header"&gt;
          &lt;tr&gt;
              &lt;th&gt;Vin&lt;/th&gt;
              &lt;th&gt;Year&lt;/th&gt;
              &lt;th&gt;Brand&lt;/th&gt;
              &lt;th&gt;Color&lt;/th&gt;
          &lt;/tr&gt;
      &lt;/ng-template&gt;
      &lt;ng-template pTemplate="body" let-car&gt;
          &lt;tr&gt;
              &lt;td&gt;{{car.vin}}&lt;/td&gt;
              &lt;td&gt;{{car.year}}&lt;/td&gt;
              &lt;td&gt;{{car.brand}}&lt;/td&gt;
              &lt;td&gt;{{car.color}}&lt;/td&gt;
          &lt;/tr&gt;
      &lt;/ng-template&gt;
  &lt;/p-table&gt;
    `
  })
  export class TestComponent implements OnInit {
  
    cars = [
      {"brand": "VW", "year": 2012, "color": "Orange", "vin": "dsad231ff"},
      {"brand": "Audi", "year": 2011, "color": "Black", "vin": "gwregre345"},
      {"brand": "Renault", "year": 2005, "color": "Gray", "vin": "h354htr"},
      {"brand": "BMW", "year": 2003, "color": "Blue", "vin": "j6w54qgh"},
      {"brand": "Mercedes", "year": 1995, "color": "Orange", "vin": "hrtwy34"},
      {"brand": "Volvo", "year": 2005, "color": "Black", "vin": "jejtyj"},
      {"brand": "Honda", "year": 2012, "color": "Yellow", "vin": "g43gr"},
      {"brand": "Jaguar", "year": 2013, "color": "Orange", "vin": "greg34"},
      {"brand": "Ford", "year": 2000, "color": "Black", "vin": "h54hw5"},
      {"brand": "Fiat", "year": 2013, "color": "Red", "vin": "245t2s"}
  ];
  
    constructor() { }
  
    ngOnInit(): void {
    }
  }
  </code></pre>
  
  <p>And here is the test ("should render table"):</p>
  
  <pre><code>import { async, ComponentFixture, TestBed } from '@angular/core/testing';
  import { TestComponent } from './test.component';
  import { By } from '@angular/platform-browser';
  
  describe('TestComponent', () =&gt; {
    let component: TestComponent;
    let fixture: ComponentFixture&lt;TestComponent&gt;;
  
  
    beforeEach(async(() =&gt; {
      TestBed.configureTestingModule({
        declarations: [
          TestComponent
        ],
      }).compileComponents();
    }));
  
    beforeEach(() =&gt; {
      fixture = TestBed.createComponent(TestComponent);
      component = fixture.componentInstance;
      fixture.detectChanges();
    });
  
    it("should render table", () =&gt; {
      debugger;
      const result = fixture.debugElement.queryAll(By.css(".testtable"));
      const markup = result[0].nativeNode.outerHTML;
      console.log(markup);
  
      //const tableEl = fixture.debugElement.query(By.css('div'));
      //const bodyRows = tableEl.query(By.css('.ui-table-tbody')).queryAll(By.css('tr'));
      //expect(bodyRows.length).toEqual(10);
    });
  });
  </code></pre>
  
  <p>Currently i'm using Angular 9.0.6 and PrimeNG 9.0.0.</p>
  
  <p>I already tried different other methods like compileComponent after createComponent or using async helper function for the test but with no luck at all. Furthermore I've asked the same question in the PrimeFaces Forum, but didn't get a response for a week now.</p>
  
  <p>Any help would be highly appreciated!</p>