Skip to content

Instantly share code, notes, and snippets.

@sawo
Created January 27, 2017 11:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sawo/15a4d7e7ef889f8c443442fe4be09c84 to your computer and use it in GitHub Desktop.
Save sawo/15a4d7e7ef889f8c443442fe4be09c84 to your computer and use it in GitHub Desktop.
Angular 1 hello world protractor test
describe('angularjs hello world app testing', function() {
it('H1 tag should contain: "Hello Wrold!"', function() {
browser.get('http://localhost:8080/index.html');
element(by.model('name')).sendKeys('world');
var headerElement = element(by.id('title'));
headerElement.getText().then(function(text) {
expect(text).toEqual('Hello world!');
});
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment