"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "aio/tests/e2e/src/search.e2e-spec.ts" between
angular-11.0.1.tar.gz and angular-11.0.2.tar.gz

About: Angular is a development platform for building mobile and desktop web applications using Typescript/JavaScript.

search.e2e-spec.ts  (angular-11.0.1):search.e2e-spec.ts  (angular-11.0.2)
import { SitePage } from './app.po'; import { SitePage } from './app.po';
describe('site search', () => { describe('site search', () => {
let page: SitePage; let page: SitePage;
beforeEach(() => { beforeEach(async () => {
page = new SitePage(); page = new SitePage();
page.navigateTo(''); await page.navigateTo('');
}); });
it('should find pages when searching by a partial word in the title', () => { it('should find pages when searching by a partial word in the title', async ()
page.enterSearch('ngCont'); => {
expect(page.getSearchResults()).toContain('NgControl'); await page.enterSearch('ngCont');
expect(await page.getSearchResults()).toContain('NgControl');
page.enterSearch('valueaccess'); await page.enterSearch('valueaccess');
expect(page.getSearchResults()).toContain('ControlValueAccessor'); expect(await page.getSearchResults()).toContain('ControlValueAccessor');
}); });
it('should find API docs whose instance member name matches the search query', it('should find API docs whose instance member name matches the search query',
() => { async () => {
page.enterSearch('decode'); await page.enterSearch('decode');
expect(page.getSearchResults()).toContain('HttpParameterCodec'); expect(await page.getSearchResults()).toContain('HttpParameterCodec');
}); });
it('should find API docs whose static method name matches the search query', ( it('should find API docs whose static method name matches the search query', a
) => { sync () => {
page.enterSearch('compose'); await page.enterSearch('compose');
expect(page.getSearchResults()).toContain('Validators'); expect(await page.getSearchResults()).toContain('Validators');
}); });
}); });
 End of changes. 6 change blocks. 
15 lines changed or deleted 16 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)