2018-07-06 17:51:37 -04:00
|
|
|
import {browser, by, element} from 'protractor';
|
2018-05-29 18:35:48 -04:00
|
|
|
|
2018-06-14 14:14:21 -04:00
|
|
|
jasmine.DEFAULT_TIMEOUT_INTERVAL = 120000;
|
|
|
|
|
2018-05-29 18:35:48 -04:00
|
|
|
describe('angular example application', () => {
|
|
|
|
it('should display: Hello World!', (done) => {
|
|
|
|
browser.get('');
|
|
|
|
const div = element(by.css('div'));
|
|
|
|
div.getText().then(t => expect(t).toEqual(`Hello world!`));
|
|
|
|
element(by.css('input')).sendKeys('!');
|
|
|
|
div.getText().then(t => expect(t).toEqual(`Hello world!!`));
|
|
|
|
done();
|
|
|
|
});
|
|
|
|
});
|