Files
angular__angular/e2e/components/progress-spinner-e2e.spec.ts
T
Paul Gschwendtner 326f8bb32f build: run e2e tests with bazel (#14656)
* Builds the e2e app with Bazel
* Serves the e2e app with Bazel
* Runs the e2e tests with Bazel protractor rules
2019-01-11 14:43:04 -08:00

19 lines
629 B
TypeScript

import {browser, by, element} from 'protractor';
describe('progress-spinner', () => {
beforeEach(async () => await browser.get('/progress-spinner'));
it('should render a determinate progress spinner', async () => {
expect(await element(by.css('mat-progress-spinner')).isPresent()).toBe(true);
});
it('should render an indeterminate progress spinner', async () => {
expect(await element(by.css('mat-progress-spinner[mode="indeterminate"]')).isPresent())
.toBe(true);
});
it('should render a spinner', async () => {
expect(await element(by.css('mat-spinner')).isPresent()).toBe(true);
});
});