23 lines
692 B
TypeScript
23 lines
692 B
TypeScript
import {verifyNoBrowserErrors} from '@angular/platform-browser/testing_e2e';
|
|
|
|
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);
|
|
});
|
|
});
|
|
});
|