The testing_e2e util does not belong in platform-browser and was never
intended to be a public API. Move it out of that whole tree.
BREAKING CHANGE:
The following API was never intended to be public and is removed:
```js
import {verifyNoBrowserErrors} from '@angular/platform-browser/testing_e2e';
```
Consider using Protractor's console plugin: https://github.com/angular/protractor-console-plugin
		
	
			
		
			
				
	
	
		
			31 lines
		
	
	
		
			876 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
			
		
		
	
	
			31 lines
		
	
	
		
			876 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
/**
 | 
						|
 * @license
 | 
						|
 * Copyright Google Inc. All Rights Reserved.
 | 
						|
 *
 | 
						|
 * Use of this source code is governed by an MIT-style license that can be
 | 
						|
 * found in the LICENSE file at https://angular.io/license
 | 
						|
 */
 | 
						|
 | 
						|
import {verifyNoBrowserErrors} from 'e2e_util/e2e_util';
 | 
						|
 | 
						|
function waitForElement(selector: any /** TODO #9100 */) {
 | 
						|
  var EC = (<any>protractor).ExpectedConditions;
 | 
						|
  // Waits for the element with id 'abc' to be present on the dom.
 | 
						|
  browser.wait(EC.presenceOf($(selector)), 20000);
 | 
						|
}
 | 
						|
 | 
						|
describe('routing inbox-app', () => {
 | 
						|
 | 
						|
  afterEach(verifyNoBrowserErrors);
 | 
						|
 | 
						|
  describe('index view', () => {
 | 
						|
    var URL = 'all/playground/src/routing/';
 | 
						|
 | 
						|
    it('should list out the current collection of items', () => {
 | 
						|
      browser.get(URL);
 | 
						|
      waitForElement('.inbox-item-record');
 | 
						|
      expect(element.all(by.css('.inbox-item-record')).count()).toEqual(200);
 | 
						|
    });
 | 
						|
  });
 | 
						|
});
 |