angular-cn/integration/bazel/test/e2e/app.spec.ts

15 lines
467 B
TypeScript

import {browser, by, element, ExpectedConditions} from 'protractor';
jasmine.DEFAULT_TIMEOUT_INTERVAL = 120000;
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();
});
});