mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
9dbe6fc18b
Update license text to point to angular.dev instead of angular.io PR Close #57901
30 lines
913 B
TypeScript
30 lines
913 B
TypeScript
/**
|
|
* @license
|
|
* Copyright Google LLC 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.dev/license
|
|
*/
|
|
|
|
import {verifyNoBrowserErrors} from '@angular/build-tooling/bazel/benchmark/driver-utilities';
|
|
import {$, browser, by, element, ExpectedConditions} from 'protractor';
|
|
|
|
function waitForElement(selector: string) {
|
|
// Waits for the element with id 'abc' to be present on the dom.
|
|
browser.wait(ExpectedConditions.presenceOf($(selector)), 20000);
|
|
}
|
|
|
|
describe('routing inbox-app', () => {
|
|
afterEach(verifyNoBrowserErrors);
|
|
|
|
describe('index view', () => {
|
|
const URL = '/';
|
|
|
|
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);
|
|
});
|
|
});
|
|
});
|