https://github.com/angular/angular
Raw File
Tip revision: 530b824faa29460a87c2401bc61d22a7fb56f939 authored by Alex Rickabaugh on 07 February 2018, 18:19:39 UTC
docs: add changelog for 5.2.4
Tip revision: 530b824
search.e2e-spec.ts
import { SitePage } from './app.po';

describe('site search', () => {
  let page;

  beforeEach(() => {
    page = new SitePage();
    page.navigateTo('');
  });

  it('should find pages when searching by a partial word in the title', () => {
    page.enterSearch('ngCont');
    expect(page.getSearchResults()).toContain('NgControl');

    page.enterSearch('accessor');
    expect(page.getSearchResults()).toContain('ControlValueAccessor');
  });

  it('should find API docs whose instance member name matches the search query', () => {
    page.enterSearch('decode');
    expect(page.getSearchResults()).toContain('HttpParameterCodec');
  });

  it('should find API docs whose static method name matches the search query', () => {
    page.enterSearch('compose');
    expect(page.getSearchResults()).toContain('Validators');
  });
});
back to top