2017-01-18 23:13:48 +01:00
|
|
|
import {browser} from 'protractor';
|
2017-06-10 01:09:08 +02:00
|
|
|
import {expectToExist} from '../util/index';
|
2016-12-19 20:17:23 +02:00
|
|
|
|
2016-11-28 23:43:09 +01:00
|
|
|
describe('progress-bar', () => {
|
|
|
|
|
beforeEach(() => browser.get('/progress-bar'));
|
|
|
|
|
|
|
|
|
|
it('should render a determinate progress bar', () => {
|
2017-01-18 23:13:48 +01:00
|
|
|
expectToExist('md-progress-bar[mode="determinate"]');
|
2016-11-28 23:43:09 +01:00
|
|
|
});
|
|
|
|
|
|
|
|
|
|
it('should render a buffer progress bar', () => {
|
2017-01-18 23:13:48 +01:00
|
|
|
expectToExist('md-progress-bar[mode="buffer"]');
|
2016-11-28 23:43:09 +01:00
|
|
|
});
|
|
|
|
|
|
|
|
|
|
it('should render a query progress bar', () => {
|
2017-01-18 23:13:48 +01:00
|
|
|
expectToExist('md-progress-bar[mode="query"]');
|
2016-11-28 23:43:09 +01:00
|
|
|
});
|
|
|
|
|
|
|
|
|
|
it('should render a indeterminate progress bar', () => {
|
2017-01-18 23:13:48 +01:00
|
|
|
expectToExist('md-progress-bar[mode="indeterminate"]');
|
2016-11-28 23:43:09 +01:00
|
|
|
});
|
|
|
|
|
});
|