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

13 lines
423 B
TypeScript
Raw Normal View History

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