refactor(examples/e2e_test): Ts'ifying examples/e2_test
Translate AtScript in examples/e2e_test to TypeScript. Closes #2294
This commit is contained in:
23
modules/examples/e2e_test/material/progress_linear_spec.ts
Normal file
23
modules/examples/e2e_test/material/progress_linear_spec.ts
Normal file
@ -0,0 +1,23 @@
|
||||
import {verifyNoBrowserErrors} from 'angular2/src/test_lib/e2e_util';
|
||||
|
||||
describe('md-progress-linear', function() {
|
||||
var url = 'examples/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);
|
||||
});
|
||||
});
|
Reference in New Issue
Block a user