import { ComponentFixture } from '@angular/core/testing';
import { By } from '@angular/platform-browser';

export function selectElement<T> (fixture: ComponentFixture<T>, locator: string) {
  return fixture.debugElement.query(By.css('h1')).nativeElement;
}

import { ComponentFixture } from '@angular/core/testing';
import { By } from '@angular/platform-browser';

export function selectElement<T> (fixture: ComponentFixture<T>, locator: string) {
  return fixture.debugElement.query(By.css(locator)).nativeElement;
}

Fix element selector in spec testing module
Fix element selector in spec testing module
