2016-06-23 12:47:54 -04:00
|
|
|
/**
|
|
|
|
* @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
|
|
|
|
*/
|
|
|
|
|
2016-07-13 13:10:02 -04:00
|
|
|
import {verifyNoBrowserErrors} from 'e2e_util/e2e_util';
|
2016-11-10 21:13:11 -05:00
|
|
|
import {$, ExpectedConditions, browser, by, element} from 'protractor';
|
2015-07-09 13:25:58 -04:00
|
|
|
|
2016-10-23 10:21:18 -04:00
|
|
|
function waitForElement(selector: string) {
|
2015-07-09 13:25:58 -04:00
|
|
|
// Waits for the element with id 'abc' to be present on the dom.
|
2016-11-10 21:13:11 -05:00
|
|
|
browser.wait(ExpectedConditions.presenceOf($(selector)), 20000);
|
2015-07-09 13:25:58 -04:00
|
|
|
}
|
|
|
|
|
2015-10-07 19:56:35 -04:00
|
|
|
describe('routing inbox-app', () => {
|
2015-07-09 13:25:58 -04:00
|
|
|
|
|
|
|
afterEach(verifyNoBrowserErrors);
|
|
|
|
|
2015-10-07 19:56:35 -04:00
|
|
|
describe('index view', () => {
|
2016-10-23 10:21:18 -04:00
|
|
|
const URL = 'all/playground/src/routing/';
|
2015-07-09 13:25:58 -04:00
|
|
|
|
2015-10-07 19:56:35 -04:00
|
|
|
it('should list out the current collection of items', () => {
|
2015-07-09 13:25:58 -04:00
|
|
|
browser.get(URL);
|
|
|
|
waitForElement('.inbox-item-record');
|
|
|
|
expect(element.all(by.css('.inbox-item-record')).count()).toEqual(200);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|