2015-10-13 03:29:13 -04:00
|
|
|
import {verifyNoBrowserErrors} from 'angular2/src/testing/e2e_util';
|
2015-05-12 11:54:47 -04:00
|
|
|
|
2015-05-29 17:33:54 -04:00
|
|
|
describe('md-input', function() {
|
2015-10-09 18:25:17 -04:00
|
|
|
var url = 'playground/src/material/input/index.html';
|
2015-05-12 11:54:47 -04:00
|
|
|
|
|
|
|
beforeEach(() => { browser.get(url); });
|
2015-05-29 17:33:54 -04:00
|
|
|
afterEach(verifyNoBrowserErrors);
|
2015-05-12 11:54:47 -04:00
|
|
|
|
|
|
|
it('should enter a value to the input', () => {
|
|
|
|
var input = element.all(by.css('md-input-container input')).first();
|
|
|
|
|
|
|
|
input.sendKeys('Hello');
|
|
|
|
|
2015-05-29 17:33:54 -04:00
|
|
|
expect(input.getAttribute('value')).toEqual('Hello');
|
2015-05-12 11:54:47 -04:00
|
|
|
});
|
|
|
|
});
|