2015-05-29 17:33:54 -04:00
|
|
|
import {verifyNoBrowserErrors} from 'angular2/src/test_lib/e2e_util';
|
2015-05-12 11:54:47 -04:00
|
|
|
|
2015-05-29 17:33:54 -04:00
|
|
|
describe('md-input', function() {
|
2015-05-12 11:54:47 -04:00
|
|
|
var url = 'examples/src/material/input/index.html';
|
|
|
|
|
|
|
|
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
|
|
|
});
|
|
|
|
});
|