e4e74ae65c
The directory contains code authored in a style that makes it transpilable to dart. As such, these are not idiomatic examples of Angular 2 usage. The main purpose of this directory is to enable experimentation with Angular within the angular/angular repository. Closes #4342 Closes #4639
24 lines
838 B
TypeScript
24 lines
838 B
TypeScript
import {verifyNoBrowserErrors} from 'angular2/src/testing/e2e_util';
|
|
|
|
describe('md-progress-linear', function() {
|
|
var url = 'playground/src/material/progress-linear/index.html';
|
|
|
|
beforeEach(() => { browser.get(url); });
|
|
afterEach(verifyNoBrowserErrors);
|
|
|
|
it('should increment and decrement progress', function() {
|
|
var progressBar = element.all(by.css('md-progress-linear')).first();
|
|
var incrementButton = element(by.id('increment'));
|
|
var decrementButton = element(by.id('decrement'));
|
|
|
|
var initialValue = progressBar.getAttribute('aria-valuenow');
|
|
|
|
incrementButton.click();
|
|
expect(progressBar.getAttribute('aria-valuenow')).toBeGreaterThan(initialValue);
|
|
|
|
decrementButton.click();
|
|
decrementButton.click();
|
|
expect(progressBar.getAttribute('aria-valuenow')).toBeLessThan(initialValue);
|
|
});
|
|
});
|