mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
8e6bee8116
* Renames the e2e test file to match the pattern of `{{component}}-e2e.spec.ts`.
* Flattens the directory structure in the `e2e` directory. Having a separate dir for each component was overkill since only have one file per component.
* Fixes some inconsistent code styles in the Protractor config.
Fixes #5030.
18 lines
569 B
TypeScript
18 lines
569 B
TypeScript
import {browser, by, element} from 'protractor';
|
|
|
|
describe('progress-spinner', () => {
|
|
beforeEach(() => browser.get('/progress-spinner'));
|
|
|
|
it('should render a determinate progress spinner', () => {
|
|
expect(element(by.css('md-progress-spinner')).isPresent()).toBe(true);
|
|
});
|
|
|
|
it('should render an indeterminate progress spinner', () => {
|
|
expect(element(by.css('md-progress-spinner[mode="indeterminate"]')).isPresent()).toBe(true);
|
|
});
|
|
|
|
it('should render a spinner', () => {
|
|
expect(element(by.css('md-spinner')).isPresent()).toBe(true);
|
|
});
|
|
});
|