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

15 lines
447 B
TypeScript
Raw Normal View History

import {browser, by, element} 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();
});
});